Branch on clipboard content in RunMacro
Desktop ModeRunMacro 3.5+
The IF Clipboard command checks the clipboard against a condition and steers the workflow: if true it jumps to one label, if false to another.
Dialog & quick setup

- Make sure the clipboard has data (Copy Text or Set Clipboard first).
- Add a Keyboard › IF Clipboard command.
- Choose the comparison (equals, contains, greater, empty, digits, letters) and enter the target value.
- Set the IF label (if true) and ELSE label (if false).
- Place the commands to run under the matching label. Save.
Options reference
Modes & when to use
Desktop Mode
Best for
- Only continue when the clipboard contains a certain string.
- Skip/stop when the clipboard is empty.
- Classify data: digits-only, letters-only, equals a value...
Use an alternative when
- Do not use it when the value belongs in a stable variable or IF/ELSE labels are not defined.
Before you run
- Add IF Clipboard to the macro.
- Prepare the data or target that IF Clipboard will use.
Example workflow
Example: continue only if clipboard contains "OK"
- Copy the status text into the clipboard.
- IF Clipboard, mode Contains, target "OK", IF label =
continue, ELSE label =finish. - Put the handling steps under the
continuelabel.
Expected result: After execution, IF Clipboard completes the described action and makes its result available to the next step.
Tips & limitations
Combine Copy Text → IF Clipboard to read on-screen status then decide the flow.
You must create the matching Label for the jump to work.
- External clipboard contents can change between steps; Browser virtual clipboard differs from OS clipboard and comparison mode controls conversion.
Applies to RunMacro 3.5+ · Desktop Mode · Windows 10/11
