"Return From Subroutine" issues when used in a non-subroutine macro

This is kind of the counterpart of what we discussed in "Cancel Just This Macro" in a Subroutine.

Follow along for the fun:

  1. I have a macro (we'll call this Macro 1) which used to have a subroutine trigger, and used a "Return from Subroutine" action.

  2. I removed the subroutine trigger, however I forgot to remove the "Return from Subroutine" action.

  3. I changed all the calling macros to call Macro 1 using the "Execute Macro" action.

  4. Everything worked fine up to this point.

  5. Then, I had an existing macro (which we'll call Macro 2) with a subroutine trigger. I added an "Execute Macro" action to call Macro 1

  6. When Macro 1 called its "Return from Subroutine" action, it caused Macro 2 to return!

By was this (not) fun to debug!

2 Likes

Let’s blame it on your code reviewer. Oh, you don’t have one? Me neither. :rofl:

3 Likes