Question : Intercepting WM_KEYDOWN messages

How do I intercept all WM_KEYDOWN messages regardless of which window they routed to ?
Basically I am trying to write an app which will run in the background and monitor all keystrokes and pop up a dialog when it receives a particular keystroke combination.

Answer : Intercepting WM_KEYDOWN messages

u might like to use Windows Message Hooks (Spy does that...) - except for a DOS window. Enough documentation is there in help files.

Another advanced method is to write a simple driver which intercepts the calls to windows kbd driver. (Visit sysinternals.com for an example)


Random Solutions  
 
programming4us programming4us