Clipboard - Set

Declaration

<AMCLIPBOARD ACTIVITY="set" VALUE="test" />

Related Topics   

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 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.

Description

Error Causes

On Error

Example

NOTE:
  • The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
  • Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.

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" />