Clipboard
- Set
Declaration
<AMCLIPBOARD ACTIVITY="set" VALUE="test" />
Overview
Sets the specified text onto the clipboard.
Practical usage
Used to populate a text string on the clipboard in order to paste it in a subsequent step with the Clipboard - Paste activity.
Parameters
General
| Property | Type | Required | Default | Markup | Description |
|---|---|---|---|---|---|
| Text to send to the clipboard | Text | Yes | (Empty) | <AMCLIPBOARDSET>theText</AMCLIPBOARDSET> |
Specifies the text to place into the clipboard. As with all text parameters, expressions can be used. |
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
The following task opens Notepad, sets specific text onto the clipboard, and pastes the clipboard contents on the Notepad window:
Copy
<AMRUN FILE="notepad" />
<AMWINDOW ACTIVITY="maximize" WINDOWTITLE="Untitled - Notepad" />
<AMCLIPBOARD ACTIVITY="set" VALUE="This is the contents of the clipboard." />
<AMCLIPBOARD ACTIVITY="paste" />