It does for me. You just need to find out the values of the keys you are
interested it. It even works for modifier keys, as in my control-enter
example. Send the keysDown to the msg box to find out what values to look
for.

 ~ Chris Innanen
 ~ Nonsanity


On Mon, Feb 21, 2011 at 1:55 PM, Ray Horsley <[email protected]> wrote:

> I agree.  This will be for my own personal use only.  But does this
> actually
> work even when the stand alone is not the active applications?
>
> Thanks,
>
> Ray Horsley
> LinkIt! Software
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Nonsanity
> Sent: Monday, February 21, 2011 1:50 PM
> To: How to use LiveCode
> Subject: Re: Keystrokes Running in Background
>
> I needed to do the same thing for a LC tool I use. The only way I found to
> work it was by polling. This means that the script may miss the keypress if
> it is too short.
>
> -- poll for control-enter keypress
> on KeyMonitor
>   get "," & the keysDown & ","
>   if ",65507," is in it and ",65293," is in it and the hilight of btn
> "Active" is true then
>      -- do stuff here
>   end if
>   if KeyMonitor is not in the pendingmessages then send KeyMonitor to me in
> 10 ticks
> end KeyMonitor
>
> I wouldn't want to use this for a program you plan to distribute, but for
> my
> own purposes - where I know about the sample rate and will remember to hold
> the keys down for a moment - it works fine.
>
>
>  ~ Chris Innanen
>  ~ Nonsanity
>
>
>
> On Mon, Feb 21, 2011 at 11:16 AM, Ray Horsley <[email protected]> wrote:
>
> > Anybody know of a way to trap for keystrokes when a standalone is
> > running as a service.  I'm using Fire Daemon on Windows 7.  I'm trying
> > to write a simple app which launches programs on pre-defined
> > keystrokes.
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Ray Horsley
> >
> > LinkIt! Software
> >
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > [email protected]
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to