Jump to content

Need a script which clicks every few seconds


Recommended Posts

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

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