Jump to content

simple click ends


oigres
 Share

Recommended Posts

i need a script that right clicks using set co-ordinates (these will be the same so they dont need to be set each time its run) ... atm it looks something like this:

MouseClick("Right", 676, 443) ;x and y

Sleep(90000) ;time

although this works, it clicks once and then wait for the set time and finishes.

I was wondering if there was a command for it to keep on looping and right click every 1min 30secs until i end the .exe? or am i heading down the wrong track?? any help would be appreciated. Thanks in advance!!

Link to comment
Share on other sites

Look into the loop functions in the help. You can set this up several ways, including using a hot key to end the script so you don't have to "kill" the exe. Might look something like this:

HotKeySet("!x", "Stop")

do
  MouseClick("right", 676, 443)
  Sleep(90000)
until False

Func Stop()
  Exit
EndFunc
Auto3Lib: A library of over 1200 functions for AutoIt
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...