Jump to content
Sign in to follow this  
jimbobmctoot

Noob with no idea in need of help

Recommended Posts

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

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


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.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...