Sign in to follow this  

Simulating key presses

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

This topic is 3662 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this