Image Synchronization

WinTask automatically waits until the next window is displayed before sending actions to the new window. This automatic synchronization (through the UseWindow function) cannot be made when the name of the window does not change whereas the window content changes. If the window content is graphical, you have to use an image synchronization instead of a Synchronization on Text : WinTask will wait until it detects the specified image in the window. If the window contains some graphics and some text, you can use the Synchronization on OCR Text.

The dialog box Image Synchronization can be accessed through the Insert menu by selecting Synchronization/On Image or in Recording mode by clicking in the WinTask toolbar the Synchronization on Window icon.

Click Capture in the Image Synchronization dialog box, the mouse pointer changes shape ; draw a rectangle around the image WinTask must wait for before going any further. Release the mouse. The image is displayed in the Preview window. Close that window ; if you are not satisfied with this captured image, redo the process.

In the field "File name", click Browse and specify a name for saving this image as a .BMP file.

The field "Window" is there for information : it gives the window name where the image must be captured.

The frame "The synchronization is done only if the captured area is :" is used to specify when the synchronization must succeed at execution :

The bitmap synchronization reports a failure at execution if the specified bitmap is not seen within a default timeout of 120 seconds. Check the checkbox Use this timeframe and specify another value if you want to change the default timeout.

On Pause failure, a default message is displayed, click Options button if you want to change the default message. If you uncheck On Pause failure end the script, when the pause fails, execution of the script goes on.

Click Paste into the script (or Insert and Resume) to generate automatically the synchronization statements inside the script.

See also :

Image never appears at execution