quote:
Originally posted by Adeptus
Your game probably uses the DirectInput API. That would be my default expectation for most modern 3D games.
http://msdn.microsoft.com/library/default.asp?url...nput/html/diov.asp
SendKeys() stuffs the Windows message loop, which sits at a higher level than DirectInput, so they are never seen by your game.
Unfortunately, I don't know off the top of my head how you would go about simulating keys so they are recognized by DirectInput.
Humm ok. Well I found everything I need to know about DirectInput except how to send a keypress to a DirectX program (the game).
quote:
Originally posted by Matty
http://allapi.net/apilist/keyb_event.shtml
Humm but wouldn't that be the same as SendKeys() ? I don't see how that uses DirectInput in any way.
EDIT: I tryed that Matty and still no luck.