Jump to content
  • Advertisement


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

JD Williams

SENDING Keystrokes to DirectInput

This topic is 5243 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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!