Clipboard - Get contents

Declaration

<AMCLIPBOARD ACTIVITY="get" RESULTVARIABLE="text" />

Related Topics   

Description

Retrieves existing contents of the clipboard as text and places it in a 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 variable in which to place the clipboard data.

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

Get the contents of the clipboard and store it in the variable "theVariableName."

Copy
<AMCLIPBOARD ACTIVITY="get" RESULTVARIABLE="theVariableName" />