Sign in to follow this  
Followers 0
Frit

Very simple script

11 posts in this topic

Hello all!

I'm new here, I want to know if my script is right:

LeftClick, 518, 480

Sleep, 1000

Repeat, <100>

EndRepeat

I wanted to make my mouse click in the x,y position, wait a bit and repeat.

I just don't know why it doesn't works ._.

Thanks....

Share this post


Link to post
Share on other sites



Hi! Welcome to AutoIt!

Your script is using the AutoIt v2 syntax. You need AutoIt v3. Download AutoIt v3 from the AutoIt homepage and read that manual instead.

Thanks


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

or that :o

But if anything I would suggest v3, as it is much more recent.


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

so, could you tell me how to do that in v3?

it seems to be a very simple script.. but i have no idea of how to do it!

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

For $x = 1 To 100
    MouseClick("left", 518, 480)
    Sleep( 1000 )
Next

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

so, could you tell me how to do that in v3?

it seems to be a very simple script.. but i have no idea of how to do it!

This would repeat the mouse click 100 times with a 1 second sleep between

For $i = 1 to 100
MouseClick ( "left" , 518, 480 )
Sleep (1000)
Next

Share this post


Link to post
Share on other sites

And this would click the left mouse key twice, the interval can be adjusted between 1 and 100

MouseClick("left", 518, 480, 2, 50)

Experiment and use the help file, it is really very good.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

How do you set how many times it will repeat?

Share this post


Link to post
Share on other sites

How do you set how many times it will repeat?

Change the first line of code he gave you

For $i = 1 to 100

Share this post


Link to post
Share on other sites

Or you can use this-

$loop = "0"
While $loop <100
    MouseClick("left", 518, 480)
    Sleep( 1000 )
$loop = $loop + 1
Wend

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  
Followers 0