Sign in to follow this  
Followers 0
oigres

simple click ends

3 posts in this topic

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!!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

while 1
MouseClick("Right", 676, 443)
Sleep(90000)
wend

that is just one example of a loop but will work for what you want...

Edited by beerman

 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
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

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