I just finished a script (with a little help from the community) that auto clicks the left mouse button at 2 minute intervals. It goes to a preset coordinate, clicks on the location and returns the mouse cursor to the original position. You can toggle it on/off with control-M. Thought I'd share since I didn't find anything like it on the forums. I made it for websites that time-out after a certain period. If there are any embellishments that anyone would like to add please share.
Code: Select all
CoordMode,Mouse,Screen
SetMouseDelay, 10
Click := 0
^m:: ;toggles Clicker on/off
MouseGetPos, xpos, ypos
If Click := !Click
SetTimer, Clicker, 120000
Else
SetTimer, Clicker, Off
return
Clicker:
mousemove, 74, 46
Click Left
MouseMove, %xpos%, %ypos%
Sleep, 100
return
^End::ExitApp ;exit the script