Goto command: jump to a label in RunMacro
RunMacro RunnerRunMacro 3.5+
The Goto command moves execution to a Label you choose — instead of running straight down.
Dialog & quick setup

- Make sure a target Label exists in the script.
- Add a Flow › Goto command.
- Choose the target label. Save.
Options reference
Modes & when to use
RunMacro Runner
Best for
- Create a loop: return to a Label at the top to run again.
- Skip a block of commands you do not need.
- Combine with condition commands for advanced branching.
Use an alternative when
- Do not use Goto for bounded repetition; Loop is clearer and has an iteration limit.
Before you run
- Add Goto to the macro.
- Prepare the data or target that Goto will use.
Example workflow
Example: repeat an action 24/7
- Label
loopat the top. - The commands to repeat.
- Goto
loopat the end — the script loops continuously.
Expected result: After execution, Goto completes the described action and makes its result available to the next step.
Tips & limitations
To cap the number of iterations, use Loop instead of an endless Goto.
An endless Goto loop only stops when you press the RunMacro stop hotkey.
- Goto has no iteration limit; a missing label or uncontrolled backward jump can fail or create an infinite loop.
Applies to RunMacro 3.5+ · RunMacro Runner · Windows 10/11
