Docs
RunMacro Documentation
Create your first robot, then go further as needed.
Clear step-by-step guides to create, run, and improve robots for repetitive computer work.
Goto command: jump to a label in RunMacro
The Goto command moves execution to a Label you choose — instead of running straight down.
Prerequisites#
- Add Goto to the macro.
- Prepare the data or target that Goto will use.
Supported modes#
- RunMacro Runner
What it does#
The Goto command moves execution to a Label you choose — instead of running straight down. Use it to repeat a section or skip steps.
Screenshots & video#

When to use it#
- 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.
When not to use it#
- Do not use Goto for bounded repetition; Loop is clearer and has an iteration limit.
Configuration steps#
- Make sure a target Label exists in the script.
- Add a Flow › Goto command.
- Choose the target label. Save.
Every option explained#
Expected result#
After execution, Goto completes the described action and makes its result available to the next step.
Real example#
Example: repeat an action 24/7#
- Label
loopat the top. - The commands to repeat.
- Goto
loopat the end — the script loops continuously.
Limitations and failure cases#
- Goto has no iteration limit; a missing label or uncontrolled backward jump can fail or create an infinite loop.
Tips & common mistakes#
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.
Verification details#
commands/control_flow.py
