Changing the scope of macro
Every named macro can be restricted to play when a specified window exists. In some cases this is necessary for ensuring the macro's actions to perform right.
To change the scope of macro:
- Click on the Macro Explorer tab.
- Select the macro that you want to change.
- Click the tool button "Property" to open the property dialog. Alternatively, you also can right-click the macro and select "Property" under the context menu, and then click the "Scope" tab.
The scope of macro dialog:
Click here to show the figure
Window caption
Finds the window by the caption of windows.
Window class
Finds the window by the class name of windows.
Caption/class name must match exactly
Specifies whether to search for whole caption/class name matches.
Window state
The visual state of the specific window, it can be Minimize, Maximize and Normal.
Left of window
The x-coordinate of the upper-left corner of the specific window.
Top of window
The y-coordinate of the upper-left corner of the specific window.
Width of window
The x-coordinate of the lower-right corner of the specific window.
Height of window
The y-coordinate of the lower-right corner of the specific window.
This macro will apply to all windows.
Specifies whether to search for a specific window that is existed before playing the macro.
Notes:
- You might use the instruction "Wait for a window" to get the same effect.
- With the option "This macro will apply to all windows." checked, the macro will run immediately without a window existing or not.
|