Clipboard - Set
Declaration
<AMCLIPBOARD ACTIVITY="set" VALUE="test" />
Description
Sets the specified text onto the clipboard.
Practical usage
Commonly used to populate a text string onto 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 that should be placed into the clipboard. As with all text parameters, expressions may 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
This task opens Notepad, sets specific text onto the clipboard and pastes the clipboard contents onto 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" />