I would like to log the keystrokes keyed in to a specific window. Is there a relatively easy way to do this? Thanks.
Printable View
I would like to log the keystrokes keyed in to a specific window. Is there a relatively easy way to do this? Thanks.
if youre going to do that on your own application, you can do that using the keypress event of your form and other controls
It's not my own application. It's a window I know the hwnd and dc of.
well, i think you may use GetAsyncKeyState()
well, for more information get a guide.
This thread is two and a half years old. By the way, GetAsyncKeyState() will only work if you're lucky enough to call it when a key is pressed down. You most certainly can't log all keystrokes that way, especially without using up a ton of the user's cpu.