I have created a long process of multiple steps which is triggered by a hotkey. It has this form:
Code: Select all
Send F2 Sleep 700 do stuff A Sleep 700 Send F2 Sleep 700 Send F2 Sleep 700 do stuff B Sleep 700 Send F2 etc etc etc
Sometimes I need to stop the subroutine before it reaches its end.
But I dont know how to do it. I tried with another hotkey to reload the entire script. But it doesnt work consistently, sometimes the process keeps going until it ends although I triggered the reload.
So how can I do it? How can I terminate the subroutine from another hotkey before it reaches its end? preferably without having to reload the script.