View Single Post
Old Nov 27th, 2005, 8:31 AM   #8
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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.
Rory is offline   Reply With Quote