Copy text into clipboard Version 6 (Java)

Action group: Base actions, subgroup: Clipboard


Description

The action is intended to save the text to the buffer

Action icon

img763.png

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Text

Text to be copied into clipboard

String

ROBIN RPA - leading Russian RPA platform

Yes
Timeout
Timeout in milliseconds if clipboard is opened in another process. Default value is 30 seconds
Numeric150000No

Special conditions of use

None.

Example of use

Task

You need to write data to the clipboard and write it to a text file.

Solution

Use the actions "Get random string", "Copy text into clipboard", "Create file" and "Write to text file". 

Implementation

  1. Create a string variable "Text".


  2. Move the "Get random string" action to the workspace.


  3. Set the parameters of the "Get random string" action.
    In the result of the action specify the created variable "Text" from step 1.


  4. Move the "Copy text into clipboard" action to the workspace.


  5. Set the parameters of the "Copy text into clipboard" action.
    1. In the "Text" field, add the variable "Text"
    2. Set 20000 ms in the "Timeout" field


  6. Move the "File create" action to the workspace.


  7. Set the parameters of the "File create" action.


  8. Move the "Write to text file" action to the workspace.


  9. Set the parameters of the "File create" action.


  10. Start the robot using the "Start" button in the top panel. 

Result

The program robot completed successfully. The text is written into the clipboard and written to the text file.

  • Нет меток