Wait for Window to Lose Focus
The Wait for Window Title to Lose Focus option instructs the macro to continue only after the Window selected has lost focus or is no longer on top.
Script Editor > Expand Timing Category > Wait for Window Title to Lose Focus
Enter the name of the Window (the title in the caption bar of a window). Or click on the Browse button to select from a list of windows currently open on the computer. Choose from Hidden or Visible windows.
This requires that the window name entered matches exactly with the name of the window waiting to receive focus. For example, if listing Notepad as the window name, but the actual window title is Notepad - Untitled, then the macro would not wait.
The Partial Match option does not require an exact window title match. For example, if waiting for a notepad window, inserting "notepad" or "notep" as the window title will find the window. This is particularly useful as some Window Titles change based on whether a given file is open. Case sensitivity is not required. For example, "NOTepad" will work as well as "notepad".
The Name contains Wildcards
Select this option if a wildcard is included in the window title name. A wildcard uses the " * " or " ? " characters in the title to expand the possibilities of a match. These are similar to the wildcards used in Windows for searches.
With this option checked, the macro does not resume until the Wait For action specified has occurred.
Wait at most
With this option checked, the macro waits the number of hours, minutes and seconds specified for the Wait For action to occur. If that action does not take place within the specified time frame, the macro takes the action selected in the On Error tab.