Archived

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

SENDING Keystrokes to DirectInput

This topic is 4956 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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