Sign in to follow this  
Followers 0
Shadow987

Right click Timed

4 posts in this topic

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.

Share this post


Link to post
Share on other sites

sleep(20000) ; 20sec

MouseClick("Right") ; your right click

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

ehh didnt see mouse over what I need

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