Docs

RunMacro Documentation

Learn RunMacro from basics to advanced.

Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

RunMacro robot
Docs Variables Assign Variable
📝 Variables

Assign a value to a variable from several sources in RunMacro

What it does

The Assign Variable command sets a new value for a variable, taken from one of three sources: typed text, the clipboard, or another variable.

When to use it

  • Update a variable with freshly copied content (clipboard).
  • Copy a value from one variable to another.
  • Reset a variable with new text.

Configuration steps

  1. Add a Variables › Assign Variable command.
  2. Choose the target variable.
  3. Choose the source: Text / Clipboard / Another variable, then enter the source value.
  4. Save.

Every option explained

Target variable

The variable to receive the new value. If missing, it is created (Dynamic).

Source (Text / Clipboard / Variable)

Where to take the value from: typed, the clipboard, or another variable.

Source value

For Text: the content (may contain variables). For Variable: the source variable name.

Real example

Example: save copied content into a variable

  1. Copy Text some content on screen.
  2. Assign Variable result, source Clipboard.
  3. Use {result} in a later step.

Tips & common mistakes

To create a new variable with a type, use Declare Variable; Assign Variable updates a value.
RunMacro robot

Ready to automate smarter?

Download RunMacro and start automating your desktop, browser, and business workflows today.