Sign in to follow this  
Followers 0
declensions

Need a script which clicks every few seconds

2 posts in this topic

Would someone be so kinda as to write me one.. I don't know anything about scripting, trying to learn and this would be helpful if someone could provide an example.

A script which left clicks at the current position once every x seconds

Share this post


Link to post
Share on other sites



HotKeySet("{.}", "more")
HotKeySet("{,}", "less")
HotKeySet("{;}", "close")
HotKeySet("{m}", "toggle")


Global $toggle = false
Global $time = 1000 ;seconds
Global $x = 100 ;pixels
Global $y = 100 ;pixels

while (1)
if $toggle then
MouseClick("left", $x, $y)
sleep($time)
EndIf

WEnd

func toggle()

$toggle = $toggle == false
ToolTip("Running: " & $toggle)
EndFunc



func more()
$time += 10
ToolTip("Time: " & $time)
EndFunc


func less()
$time -= 10
ToolTip("Time: " & $time)
EndFunc

func close()
exit
EndFunc

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