For the Cancel Just This Macro action, the wiki states the following:
Cancel just this macro, continue executing the macro that executed this macro.
This does not seem to apply if the action is in a subroutine. i.e., if a subroutine is called using an Execute a Subroutine action, then the Cancel Just This Macro in the subroutine also cancels the calling macro.
@peternlewis, is that the expected behavior? If so, I suggest documenting this distinction in the wiki.
Basically, yes. It cancels back to an Execute a Macro action.
I could change it, but it kind of makes sense since there already is the Return from Subroutine action, and the Cancel Just This Macro action would not return a potentially needed value.
If my case (when I discovered this behavior), there was no explicitExecute a Macro action.
Instead, I had a macro that was triggered with a hot key that included an Execute a Subroutine action to start a subroutine. When the subroutine executed the Cancel Just This Macro action, the calling macro, the one triggered with a hot key, was canceled.
Yes, that's what I eventually used. Initially I didn't use the Return Result action because my subroutine is not configured with the Returning a value checkbox selected. I mistakenly assumed that the Return Result action only applied to subroutines that were designed to return a value. (If the Return Result action included a variant that only returned (but had no value), then I think I might have started with this action.)