-
Does anyone know a way my VB program can monitor ALL keypresses the system receives - whatever program has the focus - and is it possible to get the ASCII (or something equivalent) for the key that was pressed.
Don't worry - I'm not writing a virus - it's actually a joke to play on someone.. if I get the program running I'll post it on here for all to enjoy.
Is there an API call or something I can check periodically to get the key pressed etc?
Cheers for any help.
------------------
Mark "Buzby" Beeton
VB Developer
[email protected]
-
Well, I've never used it, but you could try the GetAsyncKeyState API function to check for certain keys being pressed. For more info:
http://www.vbapi.com/ref/g/getasynckeystate.html
Hope that helps.
~seaweed