Clipboard - Get contents
Declaration
<AMCLIPBOARD ACTIVITY="get" RESULTVARIABLE="text" />
Description
Retrieves existing contents of the clipboard as text and places it in an Automate Desktop variable.
Practical usage
A common method used in automation tasks to retrieve data from an application if it does not provide it any other way (such as OLE, DDE, or other means).
Parameters
General
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Populate variable with contents | Text | Yes | (Empty) | RESULTVARIABLE="theVariableName" | Specifies the name of the Automate Desktop variable in which to place the clipboard data. |
Example
NOTE:
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
Description
Get the contents of the clipboard and store it in the variable "theVariableName."
Copy
<AMCLIPBOARD ACTIVITY="get" RESULTVARIABLE="theVariableName" />