Set Text Action—Setting Properties

The Set Text action is used to populate a Windows object with a designated text string. When it can be used, this action is preferable to the Send Keystrokes action because it communicates natively with the object, and the application is not required to be in the foreground.

Important: Only standard Windows controls will work with the Set Text action. Many applications use images or other controls that may act like Windows controls but do not support the interfaces required to detect them. The Set Text action will not work with these controls. In these cases another interactivity action must be used, such as the Send Keystrokes action.  

To enter Set Text properties

  1. From the Task Builder Available Actions pane, open the Interactivity folder and double-click the Set Text action or drag it into the Steps pane.

  2. If possible, open the window containing the object you want to use. Then drag the AutoMate icon to the object. This will automatically populate the object description. If you cannot use the actual object, use a similar object and then edit the object description per the next step. You can also drag the AutoMate icon to the window that contains the object, and then click the Browse button and use the tree structure to find and select the object.

  3. If you need to make changes to the auto-populated properties, click Edit and change the properties according to the following guidelines:

The properties are as follows:

  1. In the Text box, type the text that you want to populate the object.

  2. If you do not want AutoMate to focus the window when the task runs, click the Options tab, and clear the Focus the window check box.

  3. To set the Description tab properties, refer to Description Tab Options.

  4. To set the Error Causes and On Error tab properties, refer to Step Error Handling.

  5. When finished, click OK to save settings and close the properties dialog window.

See Also

About Actions

Adding Task Steps

Set Text Action