XenoGuard Documentation

Set Text

Actions » Windows » Clipboard » Set Text

The action Set Text copies the text that is either entered by the user or as a result of an action script and stores it in the Windows clipboard.

[-] Hide
  1. Open the Windows node in the Workspace Explorer.
  2. In the Clipboard node, select the Set Text action.


The action has the following input parameters:

name Description
Contains the text to be copied to the clipboard

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Type [Variable, Parameter, Enum]


The action returns the following results:

The text that was copied from the clipboard.

Allowed Context Type [Variable, Parameter]

Example 1 (Copy contents of a variable to a clipboard):

This example copies the contents of a local variable named Message, with Text as data type, into the Windows Clipboard. Then, it displays the instruction on how to view the copied message in the clipboard in Message Box.  

Example 2 (Copy the result of an action script to the clipboard):

This example copies the sum of two local variables named numValue1 and numValue2 with Number as data type to the Windows Clipboard. The Text result is then output in Message Box.

See other clipboard operations:

Get Text
Set Text Items