waitfor
WaitFor Command Window
This window allows creates a WaitFor match or mismatch command or the corresponding waitForMatch() / waitForMismatch() Java method call and inserts it into the active editor. See the WaitFor command specification for more information on fields and values defined in the window. To open the window select Script -> WaitFor Command in the main GUI menu or click the button on the tool bar or select the command in the Command Wizard.
Unlike in the 2.x versions the window does not deal with the WaitFor bell and update commands. These can be created through the Command Wizard.
The WaitFor match or mismatch command suspends the script execution until the selected image comparison method produces a match (WaitFor match) or mismatch (Waitfor mismatch) or the timeout is reached. In plain words this command performs a task like "wait until (or as long as) the desktop image matches a template or a list of templates but no longer than the specified timeout". Default values populated in this panel are shared with the CompareTo command and may be configured in the CompareTo Command panel of the Preferences window.
- Image comparison parameters can be specified in the Template Parameters panel. Functionality of this shared component is described in details in the CompareTo Command Window help topic.
- The Wait for parameter allows to select the target condition (match or mismatch). The match one will hold the script execution until the selected comparison method produces a positive result, for example when a component represented by the specified template image appears on the desktop screen. The mismatch one performs quite opposite and waits as long as the comparison method produces a positive result, for example until the specified component disappears from the screen.
- The Image comparison interval option specifies how often should be the remote desktop compared to the selected template image(s). The default value is 3 seconds.
- The Timeout option inserts a timeout into the command (parameter timeout=<time>). It defines the maximum amount of time to wait for a match or mismatch. If you don't select this option the command will wait until there's a match or mismatch indefinitely.