Jump to content

Recommended Posts

Posted

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?

Posted (edited)

Where would I put the amount of mouse clicks? :D Thanks for the quick reply.

MouseClick("left",x-coordinate,y-coordinate, number of clicks)

Laer to use the help file :o

Edited by hendrikhe
Posted

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?

Posted

$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

Posted (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 :D Thanks for the help Hendrikhe.

Edited by Th1rt33n
Posted

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

While $Counter < 10

basically it will run the script while counter is less than ten, then end the script.

change ten to whatever

Posted (edited)

:D

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 by mdiesel

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...