Jump to content

Help with simple script...


Recommended Posts

I am trying to create a loop of mouse clicks on my screen starting at horizontal position 50, and ending on horizontal position 650. The vertical position of this horizontal "line of mouse clicks" is at the vertical position 200. A click for every increase of 20 on the horizontal position, then loop back to 50 to do it again.

i.e. click on horizontal position 50, 70, 90, 110, 130, 150, 170, 190, 210, 230, 250, 270, and so on up until 650, and then repeat starting at 50 again. the vertical position of all these clicks is 200

Thanks so much for any help that you can offer! =D

Kindest Regards,

Brooke Moskalev

Link to comment
Share on other sites

Should be something like this...

$ClickX = 50
$ClickY = 200

While(1)
    MouseClick("left", $ClickX, $ClickY, 1, 0)
    If $ClickX < 650 Then
        $ClickX = $ClickX + 20
    else
        $ClickX = 50
    EndIf
WEnd

Though really, you should atleast try and post your attempts first.

Edited by Arakard
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...