DocsKeyboardSet Clipboard

Set a clipboard value in RunMacro

Desktop ModeBrowser ModeRunMacro 3.5+

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

Dialog & quick setup

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

Options reference

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.

Modes & when to use

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.

Best for

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

Use an alternative when

  • Do not use prompt mode in unattended workflows or when sensitive data must not enter the clipboard.
Before you run
  • Add Set Clipboard to the macro.
  • Prepare the data or target that Set Clipboard will use.

Example workflow

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

Tips & limitations

The prompt mode runs in Desktop Mode only; in Browser Mode use a fixed value/variable.
  • Prompt mode requires Desktop interaction; OS writes can fail when busy, while Browser background uses a virtual clipboard.

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