Global KeyPress event hookup?

Global KeyPress event hookup?

Post by Smok » Tue, 30 Dec 2003 09:31:25


How i can globally trap a keypress event? what i mean is, like, trap the CTRL+ATL+V keypress event no matter if my program is the
active or not.
Not sure how to do that, but i guess that i have to do a API hookup or something?

Thanks for the help.
 
 
 

Global KeyPress event hookup?

Post by anand » Wed, 31 Dec 2003 02:07:19

Hi,
You would have to use the SetWindowsHookEx API and use the WH_Keyboard as
a parameter.
Thanks
Anand



Anand Balasubramanian
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks

 
 
 

Global KeyPress event hookup?

Post by hirf-spam- » Wed, 31 Dec 2003 02:26:27

* XXXX@XXXXX.COM (Anand Balasubramanian(MSFT)) scripsit:

< http://www.yqcomputer.com/ ;

--
Herfried K. Wagner [MVP]
< http://www.yqcomputer.com/ ;