Setting a Window Trigger
The Window trigger can be set to launch a task when a specified window opens, closes, is focused, or loses focus. Additional technical information about this trigger can be found here.
Open the Window trigger properties dialog box per Setting Triggers. The General tab properties appears as shown above.
In the Action box of the General tab, select the type of action that you want to trigger the task. The selections are:
Wait for window to open
Wait for window to close
Wait for window to be focused
Wait for window to not be focused
For actions where a check box appears below the Action box, check or clear the box to indicate your selection.
If possible, open the window that you want to trigger the task. Then drag the AutoMate 'A' icon onto the window. This will automatically populate the Window title, Window class, and Window handle boxes.
Select or clear the check boxes to set the criteria for the trigger condition. If you were not able to use drag and drop to select the window, type or select your entries. The selections are as follows:
Window title must be: This is the window title as shown in the title bar. If you want to make only part of the title necessary to activate the trigger, substitute asterisk (*) or question mark (?) for the portions of the title that are not required. For example if you want the task to trigger on any Word document with report in the title, enter *Report*.doc - Microsoft Word.
Window class must be: Check this and select a class to indicate the type of window, such as Microsoft Word (OpusApp), or Adobe Acrobat (AdobeAcrobat). For example, if you use only this selection and enter XLMAIN, any Excel window can trigger the task. The drop-down list shows the classes of all currently open windows.
Window handle must be: A window handle is a unique value that Windows assigns each time a window is created. You might use this with a focus or un-focus action for situations where there might be more than one copy of the same application open. Open the window and drag the AutoMate A to populate the box.
If you are using a focus or un-focus action and were not able to use drag and drop to indicate the window, you can select or clear Window is a child to further define the window. A child window is derived from another window (usually called the parent window) and drawn relative to it.
If you want to further limit the criteria by the contents of the window, click the Contents tab, select Window must contain the objects, and then click Add. This opens a dialog box titled Select an Object where additional window characteristics can be selected. See Window Dissection for more details.
Enter the properties as follows:
If the window you are using for a trigger is open, drag the AutoMate A to select an object in the window, or click the browse button and select from the list of window objects.
If the window you are using for a trigger is not open, click Edit and enter the specifications for the object. Select the check box to make the entry box active, and then type or select the specification.
Click OK when you are finished.
Specifications are listed on the Contents page.
If you want to add additional objects, click Add again and enter the specifications. To edit or delete an entry, select it and click Edit or Delete.
If you want to enter a delay, click the Advanced tab, and then enter the number of milliseconds for the delay. Use this to prevent the trigger from checking the contents before the window has been populated.
If you want the trigger to activate if the condition is met upon startup, click the Behavior tab and enable the option Trigger on startup if condition is true.
If you want the condition to be met more than once before the task is triggered, enable the option Trigger after the condition has been met and select the desired amount.
When you have finished entering all specifications, click OK.
All Available Triggers