Jump to content

I Need To Kno How To Make


lol98
 Share

Recommended Posts

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

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