Keyboard Hooking (adding a few of my own)
Posted on 2004-04-27
Is it possible to rewrite the keyboard callback so that I can add my own keyboard messages? The problem I am faced with is as follows: I need to send keystrokes to another window (non-active). Every piece of code I have come across needs the window to be active...perhaps I can get around this by installing a callback. How exactly do I send keystrokes (say, the letter "n") to an app?
I've figured I'll use SendMessage with a user-defined lparam to active the code, hWnd for the window, and...