Th1rt33n Posted April 11, 2009 Share 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? Link to comment Share on other sites More sharing options...
hendrikhe Posted April 11, 2009 Share Posted April 11, 2009 while 1 MouseClick("left",x-coordinate,y-coordinate) sleep(3000) WEnd Link to comment Share on other sites More sharing options...
Th1rt33n Posted April 11, 2009 Author Share Posted April 11, 2009 Where would I put the amount of mouse clicks? Thanks for the quick reply. Link to comment Share on other sites More sharing options...
hendrikhe Posted April 11, 2009 Share 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 Link to comment Share on other sites More sharing options...
Th1rt33n Posted April 11, 2009 Author Share Posted April 11, 2009 hehe sorry Link to comment Share on other sites More sharing options...
Th1rt33n Posted April 11, 2009 Author Share 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? Link to comment Share on other sites More sharing options...
hendrikhe Posted April 11, 2009 Share 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 Link to comment Share on other sites More sharing options...
Th1rt33n Posted April 11, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
Mat Posted April 11, 2009 Share 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 Link to comment Share on other sites More sharing options...
Zohar Posted April 11, 2009 Share Posted April 11, 2009 (edited) none of you like to use For..Next loops? Edited April 11, 2009 by Zohar Link to comment Share on other sites More sharing options...
Mat Posted April 11, 2009 Share 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 Link to comment Share on other sites More sharing options...
Zohar Posted April 11, 2009 Share Posted April 11, 2009 Link to comment Share on other sites More sharing options...
Mat Posted April 11, 2009 Share 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 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