Th1rt33n Posted April 11, 2009 Posted April 11, 2009 Im new to using Auto It and making scripts etc... How could I make one to click a mouse a certain amount of times in a certain place with intervals of say... 3 seconds?
hendrikhe Posted April 11, 2009 Posted April 11, 2009 while 1 MouseClick("left",x-coordinate,y-coordinate) sleep(3000) WEnd
Th1rt33n Posted April 11, 2009 Author Posted April 11, 2009 Where would I put the amount of mouse clicks? Thanks for the quick reply.
hendrikhe Posted April 11, 2009 Posted April 11, 2009 (edited) Where would I put the amount of mouse clicks? Thanks for the quick reply.MouseClick("left",x-coordinate,y-coordinate, number of clicks)Laer to use the help file Edited April 11, 2009 by hendrikhe
Th1rt33n Posted April 11, 2009 Author Posted April 11, 2009 Also, I meant like number of clicks as in... click once.. wait the 3 seconds.. click again and so on.. is there a way to set a certain number of clicks then shut off the script?
hendrikhe Posted April 11, 2009 Posted April 11, 2009 $counter = 0 while $counter < 10 MouseClick("left",x-coordinate,y-coordinate, number of clicks) sleep(3000) $counter = $counter + 1 WEnd And pls stop PMing me lol
Th1rt33n Posted April 11, 2009 Author Posted April 11, 2009 (edited) Hehe ok, it's easier to pm someone then try to make them find out the topic etc. lol Where would I input the amount of clicks I want.. I searched the help file and couldn't find $counter EDIT: Nevermind.. Trial and error helped Thanks for the help Hendrikhe. Edited April 11, 2009 by Th1rt33n
Mat Posted April 11, 2009 Posted April 11, 2009 Hehe ok, it's easier to pm someone then try to make them find out the topic etc. lolWhere would I input the amount of clicks I want.. I searched the help file and couldn't find $counterWhile $Counter < 10basically it will run the script while counter is less than ten, then end the script.change ten to whatever AutoIt Project Listing
Zohar Posted April 11, 2009 Posted April 11, 2009 (edited) none of you like to use For..Next loops? Edited April 11, 2009 by Zohar
Mat Posted April 11, 2009 Posted April 11, 2009 none of you like to use For..Next loops?it would be my preference too, but I was simply pointing out how to edit the script already there, rather than explaining an alternative. AutoIt Project Listing
Mat Posted April 11, 2009 Posted April 11, 2009 (edited) k then: For $counter = 1 to 10 MouseClick("left",x-coordinate,y-coordinate, number of clicks) sleep(3000) next this is a better method than while, saves you a couple of lines of text too! Edited April 11, 2009 by mdiesel AutoIt Project Listing
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