I want to script a loop which starts with user input and ends with a keystroke/moving the mouse.
Looking at other posts I found "A_TimeIdlePhysical" which could help but in every instance I saw the code it was always used to start something not to end it.
And the line I was using to break the loop didn't seemed to work
The code I'm using is
I'm also fine to end the loop with a specific keystroke like ctrl+l.