Set To Clipboard
Sets the specified text to the clipboard.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If ContinueOnError property is true, no error is caught when the project is executed even if a Catch node is used.
Input
- Clipboard Data - The text to be set to the clipboard.
How It Works
The Set To Clipboard node performs the following steps:
- Receives Input - Takes the text string provided in the Clipboard Data input
- Accesses System Clipboard - Connects to the operating system's clipboard service
- Clears Existing Content - Removes any existing clipboard content
- Writes Data - Stores the new text data to the clipboard
- Makes Available - The data is now available for paste operations (Ctrl+V) in any application
Requirements
- Clipboard Access - The automation must have permission to access the system clipboard
- Desktop Environment - Must run in an environment with clipboard support
- Text Data - Input must be text or convertible to text (images and files are not supported)
- Operating System Support - Compatible with Windows, macOS, and Linux desktop environments
Error Handling
| Error Code | Description | Solution |
|---|---|---|
| CLIPBOARD_ACCESS_DENIED | Unable to access the system clipboard | Ensure the automation has proper system permissions |
| CLIPBOARD_LOCKED | Clipboard is locked by another process | Wait briefly and retry the operation |
| INVALID_DATA_TYPE | Data provided is not valid text | Ensure the input is a string value |
| UNSUPPORTED_ENVIRONMENT | Running in an environment without clipboard support | Use a desktop environment or virtual desktop for automation |
| CLIPBOARD_WRITE_FAILED | Failed to write data to clipboard | Check system resources and retry |
Usage Examples
Example 1: Copy Data for Pasting
Prepare data for pasting into another application:
Input:
- Clipboard Data: "customer@example.com"
Workflow:
1. Set To Clipboard with email address
2. Navigate to target application
3. Click in email field
4. Send Keys: Ctrl+V (paste)
5. Email is inserted into the field
Example 2: Transfer Data Between Applications
Move data between applications that don't support direct integration:
Input:
- Clipboard Data: "Order ID: ORD-2025-001234"
Workflow:
1. Extract order ID from System A
2. Set To Clipboard with order ID
3. Switch to System B
4. Paste the order ID for processing
Example 3: Prepare Multi-line Text
Copy formatted text with multiple lines:
Input:
- Clipboard Data: "Line 1: Header\nLine 2: Details\nLine 3: Footer"
Result:
The clipboard contains multi-line text that preserves line breaks when pasted
Usage Notes
- Overwrites Previous Content - Setting clipboard data replaces any existing clipboard content.
- Persists Until Changed - Clipboard content remains available until overwritten by another operation.
- User Visible - Users can manually paste clipboard content (Ctrl+V) while automation is running.
- Text Only - This node only sets text data. Images, files, and formatted content are not supported.
- Immediate Availability - Data is immediately available for paste operations after the node executes.
- Cross-Platform Support - Works across Windows, macOS, and Linux, but clipboard behavior may vary slightly.
- No Size Limit (Usually) - Most systems support large text blocks, but extremely large data may cause issues.
Tips
- Add Small Delay - After setting clipboard, add a small delay (50-100ms) before pasting to ensure data is ready.
- Verify Paste Operations - After pasting, verify the content was inserted correctly.
- Security Considerations - Clear sensitive data from clipboard after use by setting it to an empty string.
- Combine with Get From Clipboard - Use Get From Clipboard to verify data was set correctly.
- Handle Special Characters - Test with special characters to ensure they're preserved correctly.
- Use for Legacy Systems - Clipboard is ideal for automating applications without APIs or automation support.
- Backup Original Content - If needed, use Get From Clipboard first to save the original clipboard content.
- Error Handling - Use Try-Catch blocks to handle clipboard access errors gracefully.
Related Nodes
- Get From Clipboard - Retrieve text data from the clipboard
- Send Keys - Send Ctrl+V to paste clipboard content
- Type Text - Alternative to clipboard for entering text in browsers
-
- Directly set text in UI elements without using clipboard