Articles → UiPath → Clipboard Related Activities In Uipath
Clipboard Related Activities In Uipath
- Copy Selected Text - This activity copies the selected text of the active window (like notepad).
- Set To Clipboard - Sets the selected text to the clipboard.
- Get From Clipboard - Gets the text from the clipboard.
Example
- Select a text from the notepad (don’t press CTRL + C).
- Drag and drop the "Copy Selected Text" activity.
- Set the output of the activity to a string variable say "strCopyText".
- Drag and drop the "Set To Clipboard" activity and set the value to the "strCopyText" variable.
- Drag and drop the "Get From Clipboard" activity and output the value to the "strCopyText" variable.
- Display the value of the variable using a message box.
Click to Enlarge
Output
Click to Enlarge