Avester Posted September 12, 2012 Share Posted September 12, 2012 I'm looking for a very simple script to make a part of a game little easier. When a hotkey, say F2 is pressed, it should move the cursor to one location (i've got the coordinates) and left-click, then to a second place and leftclick, and a third. I'm really new to this, but it should be something like: If Keyf2 = 1 then MouseClick ("left", x, y, speed) sleep(30) MouseClick ("left", x, y, speed) etc. EndIf My question is how I make it react on the fact that the hotkey is pressed down. I can't find the method for that. Link to comment Share on other sites More sharing options...
JohnOne Posted September 12, 2012 Share Posted September 12, 2012 Search hotkey in the help file.And do not post anything related to automating games in any fashionit's against this forums rules. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 12, 2012 Administrators Share Posted September 12, 2012 Thread locked. Please read Forum Rules. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Recommended Posts