Home All Groups Group Topic Archive Search About

Need to capture keypress or button click from another app

Author
27 Dec 2006 11:10 PM
Terry Olsen
Is there any way for my app to capture a keypress or a button click from
another app? I need my app to be able to catch the click before the
other app and process the click or keypress instead.

Thanks.



*** Sent via Developersdex http://www.developersdex.com ***

Author
29 Dec 2006 3:06 AM
Ken Tucker [MVP]
Terry,

            You need to create a windows hook
http://msdn.microsoft.com/msdnmag/issues/02/10/CuttingEdge/

Ken
---------------------
Show quoteHide quote
"Terry Olsen" <tolse***@hotmail.com> wrote in message
news:eAjPBxgKHHA.420@TK2MSFTNGP06.phx.gbl...
> Is there any way for my app to capture a keypress or a button click from
> another app? I need my app to be able to catch the click before the
> other app and process the click or keypress instead.
>
> Thanks.
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***