Jump to content
  • Advertisement
Sign in to follow this  
Skepsis

Simulating key presses

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

I have been looking for a solution to the simulating keys problem in dx window and came across the following discussion - http://www.gamedev.net/community/forums/topic.asp?topic_id=371104 My question is how can I use this DLL in a python script Thanks for any replies

Share this post


Link to post
Share on other sites
Advertisement
1. Are you sure the target app is using DirectInput?
2. In just the same way as you'd use any other C++ code in Python; create some functions that you can bind to python to wrap up the functionality.

Share this post


Link to post
Share on other sites
You hit the nail on the head....

The games are games like Spaceforce, CrySys Time shift etc, though I am starting with an old game called Bridge commander that does not require Dxinput
and it requires much less computing power makes testing easier.

If you know of another way to do this then please let me know but it seems there is no easy way like just using keyboard_event or sendmessage.

So thats the bit I do not know how to do.

I have not done embeding or non python Dll use, I don't even have visual studio to 'build' the dll from the source given though I do now have a working version of the dll.

Hence the question and the hope :)

Cheers

Ade

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!