Click here to Skip to main content
15,300,338 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am planning to write an application in C# to simulate mouse and keypress from keyboard to a game application. Could some one help me how to proceed? The game uses Directx.
Posted
Comments
Sandeep Mewara 27-Jul-10 10:23am
   
So, try to execute your plan. Tell us when you face issue. What kind of help you are expecting right now?
anilmaddala 29-Jul-10 6:57am
   
Well on googling i found bunch of ways to do this... using sendkeys,sendmessage,postmessage,sendinput and keyb_event. I am confused as which one to start with..

1 solution

you'll want to start by looking up FindWindow and SendKeys.

Have a look here: How to: Simulate Mouse and Keyboard Events in Code[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900