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

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#
- Add a Keyboard › Set Clipboard command.
- Choose a mode: enter a fixed value (variables allowed), or enable Prompt the user and write the question.
- Save. Then use Paste from Clipboard to fill a field.
Every option explained#
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#
- Set Clipboard, enable Prompt the user, question "Enter OTP".
- Click the OTP field.
- 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
