capturing keypressing events when focus is on different window
-
we have one editor(Text) which is executable. we want to write an application which captures the keyboard press events when user is typing into the editor. we can get the editor window handle by FindWindow() win32 API. But how to capture the keyboard Events when user is typing something into Editor??. thanks in advance adi narayana.
-
we have one editor(Text) which is executable. we want to write an application which captures the keyboard press events when user is typing into the editor. we can get the editor window handle by FindWindow() win32 API. But how to capture the keyboard Events when user is typing something into Editor??. thanks in advance adi narayana.
You'll either have to install a hook on the external window and intercept its WM_KEYDOWN, etc. messages or use functions like
GetKeyState()
andGetAsyncKeyState()
to retreive the keyboard state (globally) in a loop. Jeremy Falcon Imputek -
we have one editor(Text) which is executable. we want to write an application which captures the keyboard press events when user is typing into the editor. we can get the editor window handle by FindWindow() win32 API. But how to capture the keyboard Events when user is typing something into Editor??. thanks in advance adi narayana.
BTW, if you are trying to make a password snatcher I'll kill you! ;P Jeremy Falcon Imputek