Livecode listener
Mike Bonner
bonnmike at gmail.com
Tue May 26 23:44:17 EDT 2015
Hmm. If you're watching for the keypress itself so that you can act, and
your send loop is tight enough (without causing too much lag) You could
just check the keysdown() each loop and see if alt-f is being pressed.
If the purpose is to use control keys to run another app, I'd say it
depends. On mac, you could use applescript to send keys to an app, on
windows you can do interesting things with vbscript.
What are you doing with the alt-f?
On Tue, May 26, 2015 at 8:58 PM, Magicgate Software - Skip Kimpel <
skip at magicgate.com> wrote:
> Oooo... I will try that tomorrow!
>
> Is there any way to save an alt+f keystroke to the clipboard data? I am
> trying to automate some tasks during this entire exercise and this is also
> one of my hurdles.
>
> Thanks again,
>
> SKIP
>
> On Tue, May 26, 2015 at 5:59 PM, Mike Bonner <bonnmike at gmail.com> wrote:
>
> > One way would be to use a send in time loop. Check to see if the data in
> > the clipboard array is different, if so, act. Some untested quick and
> > dirty code follows.
> >
> > command checkClipboard
> > if sLastClipA is empty then
> > put the clipboarddata into sLastClipA
> > -- do something with the data in sLastClipA
> > else
> > repeat for each key tKey in the clipboarddata
> > -- check the data in the keys here, against the keys you saved in
> > sLastClipA
> > -- if there is a change, do something with the data in the clipboarddata
> > end if
> > put the clipboarddata into sLastClipA
> >
> > send "checkClipboard" to me in 100 millisec
> > end checkClipboard
> >
> >
> > On Tue, May 26, 2015 at 10:36 AM, Magicgate Software - Skip Kimpel <
> > skip at magicgate.com> wrote:
> >
> > > Is there a way to have LC sitting in the background (not hidden, just
> not
> > > in focus) and keep track of items put in the clipboard? I want to
> > simplify
> > > some complex cutting and pasting of multiple fields. I can get the
> > > mechanics of it to work if I can get LC to sit in the background and
> > record
> > > clipboard entries.
> > >
> > > Thank you for your input,
> > >
> > > SKIP
> > > _______________________________________________
> > > use-livecode mailing list
> > > use-livecode at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list