Sign in to follow this  
Followers 0
jimbobmctoot

Noob with no idea in need of help

4 posts in this topic

As in title a complete useless mess at this type of thing what im aiming for is a script that

pauses 5 seconds

double left clicks at spot mouse cursor is over

pauses 45 secs

double left clicks at spot mouse cursor is over

pauses 2 secs

repeats in infinate loop

i can do the mouse clicking and pausing side of thing but cant find how on earth u loop it

Share this post


Link to post
Share on other sites



do .... until

for .... next

while .... wend

look in the help file for these.


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

aye what beerman said...

i person like to use while loops

While 1
    $x = $x +1
    ToolTip($x)
WEnd

Share this post


Link to post
Share on other sites

Opt("MouseCoordMode", 0)
While 1
    Sleep(5000)
    $coord = MouseGetPos()
    MouseClick('left', $coord[0], $coord[1], 2, 1)
    Sleep(45000)
    $coord = MouseGetPos()
    MouseClick('left', $coord[0], $coord[1], 2, 1)
    Sleep(2000); Kind of useless, the first sleep should be 7 seconds
Wend


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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