Sign in to follow this  
Followers 0
lol98

I Need To Kno How To Make

3 posts in this topic

#1 ·  Posted (edited)

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



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

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  
Followers 0