The Macro option for Engroup isn't documented and rather than explaining what I meant, I thought I'd just try it out.
I engrouped three actions: initializing a variable to an empty string, prompting the user to enter a string for that variable and sending a notification displaying that string.
I wanted to repeat these three actions if the user entered a blank in the prompt by simply pressing Return. So I wanted, as I said above, to repeat the same three actions in two places in the same macro.
When I engrouped the three actions Keyboard Maestro made a new macro in the group (not the macro) which it calls with an
Execute Macro action.
Which is how I've simulated subroutines in the past. Put the common actions in their own macro and call that macro in your main macro wherever you need it.
I was hoping Engroup > Macro would encapsulate the actions within the main macro, not as a separate macro.
I'd post the sample code but it's incomplete because the engrouped code is off in another macro .