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 Keyboard Set Clipboard
✏️ Keyboard

Set a clipboard value in RunMacro

The Set Clipboard command puts a value into the clipboard — either fixed (including from a variable) or by prompting the user at runtime.

Prerequisites#

  • Add Set Clipboard to the macro.
  • Prepare the data or target that Set Clipboard will use.

Supported modes#

  • Desktop Mode
  • Browser Mode — Runs in the background through Chrome CDP: the value is written to RunMacro’s virtual clipboard. Prompt mode is not available here and the command skips it.

What it does#

The Set Clipboard command puts a value into the clipboard — either fixed (including from a variable) or by prompting the user at runtime. Then use Paste from Clipboard to fill a field.

Screenshots & video#

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

When to use it#

  • Prepare content once to paste multiple times in a workflow.
  • Ask the user for a value (e.g. an OTP) then use it.
  • Move a variable value into the clipboard to paste.

When not to use it#

  • Do not use prompt mode in unattended workflows or when sensitive data must not enter the clipboard.

Configuration steps#

  1. Add a Keyboard › Set Clipboard command.
  2. Choose a mode: enter a fixed value (variables allowed), or enable Prompt the user and write the question.
  3. Save. Then use Paste from Clipboard to fill a field.

Every option explained#

Value#

The content to place in the clipboard. Supports variables (e.g. {otp_code}).

Prompt the user#

When on, a dialog appears at runtime for the user to type; the entered value goes to the clipboard.

Prompt text#

The message shown in the user prompt dialog.

Expected result#

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

Real example#

Example: ask for an OTP then fill it#

  1. Set Clipboard, enable Prompt the user, question "Enter OTP".
  2. Click the OTP field.
  3. Paste from Clipboard to fill the code the user typed.

Limitations and failure cases#

  • Prompt mode requires Desktop interaction; OS writes can fail when busy, while Browser background uses a virtual clipboard.

Tips & common mistakes#

The prompt mode runs in Desktop Mode only; in Browser Mode use a fixed value/variable.

Verification details#

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