Jump to content

Right click Timed


Recommended Posts

Not good at programming at all but it would be helpful if I could get a script that would Rightclick every 20 seconds. I would mouse over what I need it to Rightclick.

MouseClick ( "button" [, x, y [, clicks [, speed ]]] )

;A right mouse click every 20 seconds
;press esc key to end, or pause key to pause

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
Sleep ("100")
While 1
MouseClick ( "right" )
Sleep ("20000")
Wend

Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc

Func Terminate()
Exit 0
EndFunc

-Tim

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