InputToVar Method

Action2 Example

 

Encapsulates the AutoMate action in the 天ariables group, 的nput variable. The method displays a dialog box for the user to enter a value, which is then stored into the specified AutoMate variable.

 

Declaration

function InputToVar (varVarName As Variant,

varPromptTitle As Variant,

varPromptText As Variant) As Integer

 

Parameters

varVarName

 The name of the AutoMate variable to input the user response into.

 

varPromptTitle

 The text to display in the title bar of the dialog box.

 

varPromptText

 The text to display within the dialog box.

 

Description

Use the InputToVar method to allow a user to interactively input a value for a variable.

 

This method call is the same as using the SendKeystrokes method and setting the varKeysToSend to an AutoMate variable.