PopulateFromClipboard Method

Action2 Example

 

Encapsulates the AutoMateÖ action in the ôVariablesö group, ôPopulate variable with clipboard.ö The method will populate the variable name you pass into it with the current contents of the clipboard.

 

Declaration

function PopulateFromClipboard (varVariableName As Variant) As Integer

 

Parameters

varVariableName

 The name of the AutoMateÖ variable to populate with the clipboardÆs contents

 

Description

The PopulateFromClipboard method will copy the current contents of the Windows System clipboard and put them into the variable passed by varVariableName.

 

The variable must already exist before the script begins by using a Create Variable step in the step building, or the CreateVar method.

 

The clipboard must have valid text or else the action will fail.