Archived

This topic is now archived and is closed to further replies.

JD Williams

SENDING Keystrokes to DirectInput

Recommended Posts

All, I am writing an application for macros. I can get it to work in mostly all windows applications except for DirectX. I can macro normal keystrokes such as letters and spaces, but when i try to do anything that requires a Virtual Key code, nothing. I''ve recently learned about DirectInput and noticed that there is DIK_XXX codes for all of the other keys. How would I get the DirectInput device or buffer and sort of ''spoof'' these keystrokes. I''ve seen it done before but i dont know how exactly they did it. Please help. Fellow DirectX programmer

Share this post


Link to post
Share on other sites
You need to also be aware that some games can and do
acquire exclusive control over the keyboard.

Not sure if that complicates things further or not.

Share this post


Link to post
Share on other sites