I have written an AHK script to hold down Ctrl and left click, that works.
However I want the loop to terminate when I press F1 again, that doesnt work, maybe holding Ctrl messes with that?
toggle := !toggle ;toggle on off
tooltip % "AutoClicker: " (toggle ? "ACTIVE" : "OFF")
settimer,tooltipoff,1000
return
tooltipoff:
settimer,tooltipoff,off ;turn the timer off
tooltip ;clear the tooltip
return
f2::
t=0
While (t<7500) {
send {Ctrl down}
Random, I , 105, 126
t+=I
Click
Sleep I ; milliseconds
}
send {Ctrl down}
sleep 100
send {Ctrl up}
sleep 100
send {Ctrl}
tooltip % "AutoClicker: " ("OFF")
settimer,tooltipoff,1000 ;set a timer for 1 second to clear the tooltip
return
#if ;reset condition so all hotkeys work if posted under here