For me, the following macro structure comes up a lot:
. Get info (can be URLs, mouse location, controls locations, count of items, text, etc.), usually to variables
. Repeat a group of Actions if I want to.
One way I do this is to have two macros, one to get the info, another to do the job.
This requires triggering separate macros with different triggers, which I would like to avoid.
Another way I've done this is using a "Prompt for User Input" Action within a "Repeat" Action which allows me to cancel the macro rather than continue to repeat the sub-group.
But many times I would like the macro to continue after stopping the "Repeat" loop.
Something similar (to me) comes often: I need repeat a group of actions a known number of times, but either the first repeat or the last one is different, often by only one Action.
I can of course simply copy and paste Actions and make a single "straight-line" macro. The problem that creates is that when I emend the macro I usually have to change two or more instances of the same Action.
What is the best way to handle looping and branching?