Jump to content
Sign in to follow this  
lol98

I Need To Kno How To Make

Recommended Posts

lol98

a script to click x652 y31 once every second

and x687 y26 once every 4-5 seconds

and run indefnitly till i close it

ive got this far

If WinActive("Untitled -") Then Do

MouseClick ( "left" [, 652, 31 [, 1 [, 10 ]]] )

Sleep, (1000)

MouseClick ( "left" [, 652, 31 [, 1 [, 10 ]]] )

Sleep,(1000)

MouseClick ( "left" [, 652, 31 [, 1 [, 10 ]]] )

Sleep, (1000)

MouseClick ( "left" [, 652, 31 [, 1 [, 10 ]]] )

Sleep, (1000)

MouseClick ( "left" [, 687, 26 [, 1 [, 10 ]]] )

Untill <>

EndIf

Edited by lol98

Share this post


Link to post
Share on other sites
ezzetabi

What about...

SetHotKey(^{esc},_Terminate)

While 1

If WinActive("Untitled -") Then

MouseClick ( "left" , 652, 31 , 1 , 10 )

Sleep, (1000)

MouseClick ( "left" , 652, 31 , 1 , 10)

Sleep,(1000)

MouseClick ( "left" , 652, 31 , 1 , 10 )

Sleep, (1000)

MouseClick ( "left", 652, 31 , 1 , 10 )

Sleep, (1000)

MouseClick ( "left" , 687, 26 , 1 , 10 )

EndIf

WEnd

Func _Terminate()

Exit

EndFunc

Share this post


Link to post
Share on other sites
scriptkitty

maybe substitute this though:

SetHotKey("^{esc}","_Terminate"); control and esc key

AutoIt3, the MACGYVER Pocket Knife for computers.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.