Been combing through threads but still not able to understand how to do this with an existing macro.
This macro types the T keystroke to open a window in the in-use application and then pauses for the Return or Enter keystroke in order to continue.
Now, the user wants the ability to abort at this pause, and they want to do it with the Escape key (which closes the previously mentioned window).
How do I build in an OR?
So, pause, and then:
if Return or Enter is pressed then continue the macro,
-or-
if Escape is pressed do nothing (Escape can't be a hot key trigger to cancel macros, doesn't work because the open window won't close, which is the expected behavior)
You already have an "OR" when you say "Pause until ANY of the following are true..." (your yellow action.) You could just add another condition which says "The Key ESCAPE is down"). Then immediately after this action you could have an IF statement:
You could put "your actions for the Escape key" (which might just be "cancel this macro") in the FIRST block of the IF action, then you could put your existing code into the OTHERWISE block of this action.
There are a couple of things that concern me. First, I don't think you want the final action "Cancel all Macros" which may cancel other things that may be running. That may be a bad idea. Second, there is a chance that the KM Engine may (rarely) not run fast enough to detect the Enter/Return/Escape key and your code does not handle this case, meaning it will never end, and since you aren't using Semaphores, you could end up with two of these macros running at once which may cause problems.
Give my idea a try, but if you can't figure this out, ask again.