In a Directx game that i play, i repeatedly have to press a certain button combination. i would like to make and application that when ever i press F8, it presses the combination for me.
I already knowhow to check if i press F8, but i want to know how to stimulate keyboard input on a directx game.
So far, the only thing that has worked is the SendKeys.Send function. unfortunately, SOMETIMES the game misses it and it ackts like if the function was never even used. I think this is becuase the function presses and lets go of the key way to fast before it evens give time for the game to detect it.
Is thhere a way to wait a while before the SendKeys.Send lets go of the button pressed? Is there a better way to send input that will work with directx games?
all help is appreciated
(if your answer is way too long to place on here, feel free to email me at tmpryid@yahoo.com. I prefer a thorough answer by email than a short one here)
C# Send Keyboard Input To a DirectX Game?
SharpKeys 2.1.1
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment