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 Variables Use Variable
📤 Variables

Use a variable value: type, copy, or paste in RunMacro

The Use Variable command outputs a variable value your way: type it key by key, copy to clipboard, or paste (Ctrl+V) into the focused field.

Prerequisites#

  • Add Use Variable to the macro.
  • Prepare the data or target that Use Variable will use.

Supported modes#

  • Desktop Mode
  • Browser Mode — Runs in the background through Chrome CDP: the type action is dispatched into the page, while the clipboard action writes to RunMacro’s virtual clipboard.
  • RunMacro Runner

What it does#

The Use Variable command outputs a variable value your way: type it key by key, copy to clipboard, or paste (Ctrl+V) into the focused field.

Screenshots & video#

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

When to use it#

  • Fill a variable value into a field by typing.
  • Put a variable into the clipboard for use elsewhere.
  • Quickly paste a variable value into a form.

When not to use it#

  • Do not use it when direct Text/Paste interpolation is simpler or the clipboard must remain untouched.

Configuration steps#

  1. Click the target field (if typing/pasting).
  2. Add a Variables › Use Variable command and choose the variable.
  3. Choose the action: Type / Copy to clipboard / Paste. Save.

Every option explained#

Variable#

The variable to read. If missing, an empty value is used.

Action (Type / Copy / Paste)#

Type types into the field; Copy puts it in the clipboard; Paste pastes directly.

Expected result#

After execution, Use Variable completes the described action and makes its result available to the next step.

Real example#

Example: type a stored email into a form#

  1. You already have an email variable.
  2. Click the email field, add Use Variable email, action Type.
  3. RunMacro types the email into the field.

Limitations and failure cases#

  • Type/Paste require focus; Copy/Paste use OS or virtual clipboard by mode and missing variables can be empty.

Tips & common mistakes#

You can also embed a variable directly in Type Text via {var_name} — Use Variable is handy when you want to choose the output method.

Verification details#

  • commands/variables.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.