here's my ahk file, spam F5 + click (while hold):
$*F5::
Loop {
if not GetKeyState("F5", "P")
break
Send, {f5}
Click
}
how to make sure the loop only stops when CLICK is sent (after f5)? sometimes the loop is ending in the F5 and the click is not sent
thank you