|
You want to use the mouse_event and keyb_event APIs, they are implemented at the driver level, so will work if the application is using DirectInput or event hooks, which SendKeys won't work for (as it's a wrapper for SendMessage WM_KEYUP I believe), especially if this is for a game.
|