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.

Docs Flow Goto
➡️ Flow

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#

RunMacro Goto command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Goto command in RunMacro.

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#

  1. Make sure a target Label exists in the script.
  2. Add a Flow › Goto command.
  3. Choose the target label. Save.

Every option explained#

Target label#

The Label name to jump to. Must match an existing Label exactly.

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#

  1. Label loop at the top.
  2. The commands to repeat.
  3. Goto loop at 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
RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.