Jump to content
Sign in to follow this  
Th1rt33n

Hmm

Recommended Posts

Th1rt33n

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?

Share this post


Link to post
Share on other sites
hendrikhe

while 1

MouseClick("left",x-coordinate,y-coordinate)

sleep(3000)

WEnd

Share this post


Link to post
Share on other sites
Th1rt33n

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

Share this post


Link to post
Share on other sites
hendrikhe

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

Share this post


Link to post
Share on other sites
Th1rt33n

hehe sorry

Share this post


Link to post
Share on other sites
Th1rt33n

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?

Share this post


Link to post
Share on other sites
hendrikhe

$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

Share this post


Link to post
Share on other sites
Th1rt33n

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

Share this post


Link to post
Share on other sites
Mat

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

Share this post


Link to post
Share on other sites
Zohar

none of you like to use For..Next loops?

Edited by Zohar

Share this post


Link to post
Share on other sites
Mat

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.

Share this post


Link to post
Share on other sites
Mat

: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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×