How can I capture KeyDown from another application?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s possible to globally hook into the keyboard: http://www.codeproject.com/KB/cs/globalhook.aspx
To know that a keystroke has come from a particular application, you will need to know what the active window is (i.e. the window that is currently receiving the keystrokes): http://www.csharphelp.com/2006/08/get-current-window-handle-and-caption-with-windows-api-in-c/