Jump to content
  • Advertisement
Sign in to follow this  
EtaBeta

DirectInput!

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

Hi! I want to create a macro that gives some input to a program. That program uses directInput. How can I do that? Thanks. EtaBeta

Share this post


Link to post
Share on other sites
Advertisement
Are you talking about a program YOU are writing or a program someone else wrote?

If you are writting the program maybe a little more information on the macro you want to write, and what you've done with directinput in the program.

If it's someone elses program written in directX, which program.

DirectInput has a funny skill that allows you to block other programs from reading the keyboard when the focus is on it. This makes it almost impossible to run a macro from another program. But perhaps knowing what program it is will help us understand the situation.

Share this post


Link to post
Share on other sites
DirectInput reads its data directly from the HID level of things in the system, which makes it pretty much impossible to hand it your own data instead. You could either try and create some kind of USB 'impersonator' that would pretend to be a keyboard and could be programmed with your macro to play back specific keystrokes, or you could try and find out what the program does with the input once it has it from DirectInput and insert your data there.

Either way, I'd like you to tell us what context this is in. Someone could use this information to write cheat programs for something and I'm not sure we want to allow that kind of thing.

Share this post


Link to post
Share on other sites
Hi! I'm testing a program written by a professor of mine and I have to insert the same input many and many times... it takes so long that would be nice to automate this operation. This program is a 3d simulation that accepts DirectX input with keyboard.

What about this USB 'impersonator'? Is there samething like that in the web?

Thanks.
EtaBeta

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!