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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macros

Status
Not open for further replies.

Hawkeye123456

Programmer
May 5, 2000
24
0
0
US
I want to create a macro for a game. I want to have visual basic record what I am doing with the keyboard then play it back to the program that I am curently running. I am not sure how I can do this. Any help would be nice.
 
In your form, set keypreview to true, and capture all keystrokes in the form's keypress event. Play them back using sendkeys
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top