Click/Key Press Event Outside Jade

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Click/Key Press Event Outside Jade

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:40 pm

by synergyfocus >> Tue, 8 Oct 2002 21:40:56 GMT

Hi,
Does anyone know how to receive a notification within Jade of a click event/key press outside of Jade.
Say I have Jade app running but it is not the active window, can I receive a click/key press event if the user is doing something in anyother window. Instant messenger does it for those who have used that. If no mouse clicks/key presses occur within 5 minutes, it changes its staus to indicate to others that you are "Away" from your PC. As soon as you clickkey press anywhere/anything on the screen - not just the messenger window. It changes its status to "Online".
Does anyone know how to tap into this event, so I can get click and key press events in Jade even when that click in not within the Jade app?

Thanks
Stephen Persson

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Click/Key Press Event Outside Jade

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:40 pm

by CarlRanson >> Tue, 8 Oct 2002 23:02:32 GMT

Yes. These are called "hooks" in windows. You can add a program into a list that gets messages whenever certain events occur.

For instance there is a keyboard hook...that lets you monitor the keyboard, and a clipboard hook etc.

Start by reading up on this stuff: http://www.msdn.microsoft.com/library/d ... us/winui/w inui/windowsuserinterface/windowing/hooks.asp

CR


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 10 guests