Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i make a simple macro?

Status
Not open for further replies.

nickseemann

Technical User
Aug 29, 2003
2
US
There is a program for this game i play that when you open the program it clicks the mouse 1 button over and over again, i have a different game i want to make soemthing like this for i want it so when i start the program it makes it press the a button over and over again till i stop the program. Can anyone tell me how to do this?
 
What Operating System are you using ?
If it is DOS, you need to make a TSR program which replaces the timer interrupt with a routine that puts an 'A' key value into the keyboard buffer.
If you are in Windows, you can write a timer procedure which sends the WM_KEYDOWN message to the window that is your game.
If you are using linux, I don't know what you would do to be honest - something like the other two OS's. :)
 
thanks im using windows xp so i will try making a timer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top