Simulating key presses

Started by
1 comment, last by Skepsis 16 years, 4 months ago
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
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.
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

This topic is closed to new replies.

Advertisement