Original Post
Hi everyone I'm having a real nightmare with a little project I'm trying to create and wondered if I could get you guys here to scratch your heads on my behalf. Basically, I'm writing a little program similar to Game Commander. The idea is that the program recognises spoken commands, and can then generate keypress events in response. In principle, the program works. I have the voice recognition working (using the Sphinx engine), and it will happily send keystrokes to windows programs such as notepad, word etc. However, the game I'm trying to send commands to (X3:Reunion) uses DirectX to control the keyboard. I've trawled the net for days trying to find a way to simulate keystrokes that DirectInput will "see" but I can't find anything anywhere. If anyone here can help me out I'll be very grateful. I'm writing my application in VB6 so VB code samples would be preferred! :) Does anyone know of a way to send keystrokes to a directx application? Many thanks in advance. Daphyd