BigPhill Posted September 22, 2009 Share Posted September 22, 2009 Hello all! im new to this newer version of autoit (havent used the program in a few years now). i was wonder if someone could help me with a macro? its gunna be a simple one, call me dumb but i just cant seem to understand it lol. all i need is a macro that duble clicks then waits a set amount of time then loops, with a hotkey set to start it and stop it. ive found the commands for the mouse click and the sleep command to pause the macro, but the hotkey fuction and looping is new to me. any help would be awesome! THANKS GUYS! Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 22, 2009 Share Posted September 22, 2009 Hello all! im new to this newer version of autoit (havent used the program in a few years now).i was wonder if someone could help me with a macro? its gunna be a simple one, call me dumb but i just cant seem to understand it lol.all i need is a macro that duble clicks then waits a set amount of time then loops, with a hotkey set to start it and stop it.ive found the commands for the mouse click and the sleep command to pause the macro, but the hotkey fuction and looping is new to me.any help would be awesome! THANKS GUYS!Look up HotKeySet() and While\WEnd in the help file. There are example scripts there. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
somdcomputerguy Posted September 22, 2009 Share Posted September 22, 2009 Loop StatementsHotKeySet - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
BigPhill Posted September 22, 2009 Author Share Posted September 22, 2009 ok i red thru it and still cant frigure it out this is what i have so far MouseClick("left", 300, 300, 2) sleep(5000) MouseClick("left", 300, 350, 2) sleep(5000) MouseClick("left", 300, 400, 2) sleep(5000) all i want to add it something at the end to loop it back to the start, and just run forever or tell i press esc or something lol sorry if this is a stupid question O.o Link to comment Share on other sites More sharing options...
somdcomputerguy Posted September 22, 2009 Share Posted September 22, 2009 Keyword While...WEnd - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
mithandir1 Posted September 22, 2009 Share Posted September 22, 2009 hotkeyset({esc}, "exit") while 1=1 MouseClick("left", 300, 300, 2) sleep(5000) MouseClick("left", 300, 350, 2) sleep(5000) MouseClick("left", 300, 400, 2) sleep(5000) wend func exit() exit(0) endfunc I think something like that is what you are looking for. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now