DocsVariablesUse Variable

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

Desktop ModeBrowser ModeRunMacro RunnerRunMacro 3.5+

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.

Dialog & quick setup

RunMacro Use Variable command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Use Variable command in RunMacro.
  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.

Options reference

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.

Modes & when to use

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

Best for

  • 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.

Use an alternative when

  • Do not use it when direct Text/Paste interpolation is simpler or the clipboard must remain untouched.
Before you run
  • Add Use Variable to the macro.
  • Prepare the data or target that Use Variable will use.

Example workflow

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.
Expected result: After execution, Use Variable completes the described action and makes its result available to the next step.

Tips & limitations

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.
  • Type/Paste require focus; Copy/Paste use OS or virtual clipboard by mode and missing variables can be empty.

Applies to RunMacro 3.5+ · Desktop Mode & Browser Mode & 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.