Hello,
I am trying to create an application that captures the KeyPress Events that
are happening anywhere on the OS (In any window that has focus). I have a
windows form that is maximized and set to transparent. I have written code
to allow the mouse to click through the form and also to type through the
form. But the form does not capture the keypress events. I am using win32
API to accomplish this so far.
Actually I am simply asking where you might suggest I look to find a way to
capture every key press event regardless of what window it is taking place
in. Please, I am not looking for something that has already been made I am
looking to make my own (Key Capture Software).
Any suggestions will be greatly appreciated.
Thanks,
Chuck
Mehdi - 10 Mar 2006 11:51 GMT
> Actually I am simply asking where you might suggest I look to find a way to
> capture every key press event regardless of what window it is taking place
> in. Please, I am not looking for something that has already been made I am
> looking to make my own (Key Capture Software).
You'll need to set up a global keyboard hook. This involves a fair bit of
Win32 interop:
http://www.codeproject.com/csharp/globalhook.asp
http://www.codeproject.com/csharp/GlobalSystemHook.asp