A Clipboard action has been added to ScenarioBuilder v. 188.8.131.52.
The Clipboard action allows you to:
- Read text from Clipboard into a variable in ScenarioBuilder
- Write text to Clipboard into a variable in ScenarioBuilder
The action can be found in the Actions list under "Conditionals and Variables". Click on the arrow to expand the section or doubleclick on "Conditionals and Variables".
Properties of the Clipboard action
Read/Write - Select Read or Write from the drop down menu to read from or write to the system clipboard.
Variable Name - Provide a name for the variable you want to read/write from/to.
Reset Clipboard - Select if you want to clear the clipboard value.
Continue On Failure - If checked, the execution of the scenario will continue even if there is a failure.
Scenario Section - This is for Global Scenarios only. Specify the section name that can be called from other scenarios.
Write to Clipboard
To write a value to the clipboard:
- Use "Set a Variable" action to provide a value.
- Add a Clipboard action to write the value of the variable to the clipboard.
In this example, we have set a variable named "variable_x" with a value of "test". The clipboard action will write the value of "test" to the clipboard.
Read from Clipboard
To read a value from the clipboard:
- Use the "Clipboard Action" to read the value in the clipboard to a variable.
- Use a "Type Text" action to call on the value.
In this example, the Clipboard Action will read the value from the clipboard into a variable named "y". The "Type Text" action will type the value of "y" into the notepad document.