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

RunMacro Goto command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Goto command in RunMacro.
  1. Make sure a target Label exists in the script.
  2. Add a Flow › Goto command.
  3. Choose the target label. Save.

Options reference

Target label

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

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

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

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.