declensions Posted August 7, 2012 Share Posted August 7, 2012 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 Link to comment Share on other sites More sharing options...
Grayhat Posted August 7, 2012 Share Posted August 7, 2012 expandcollapse popupHotKeySet("{.}", "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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now