I am making a macro for a game I play, in where I can sit watching a terminal.
I hope when I press Alt+P it presses E on the terminal, it scrolls down so screen can show the item mouse needs to click, then clicks given coordinate and waits 20 seconds. (repeat forever until press Alt+O to stop)
!p::
while toggle==0
(send e)
Loop 3
send {WheelDown}
send {click,1210,670}
Sleep, 20000
!o:: toggle=(toggle+1)
However it keeps the E key held down indefinitely.