Why Synchronization ?

WinTask simulates user behavior.

You normally wait for the previous step to finish before you continue. For example, you wait for Word to load before typing into the document.

This behavior is automatically reproduced by WinTask by inserting a UseWindow statement before any action directed to a specific window. At run time, WinTask waits for the specified window to appear. Then the keystrokes are sent. If the desired window does not appear wiithin a given period of time, an error message is displayed. The default value for this timeout is 30 seconds.

On some applications, you must wait before performing the next action - but the window used by the application does not change. This typically happens with mainframe terminal emulators : you press Enter and you have to wait until the next screen is displayed. You must insert a Text Synchronization in order to make WinTask wait until the specified text appears.

For other applications, you must wait for a specific window to be displayed before going on, so you will have to insert a Window Synchronization.

For other applications (non-HTML Web sites for instance), you must wait for a specific image, so you will have to insert an Image Synchronization. If you must wait for an image with some text in it, you can insert an OCR Text Synchronization (not available in WinTask Lite).

Or you may just want to wait a certain amount of time. In this case you will insert a Time delay Synchronization.

Finally, if you want your script or a certain action in the script to wait until it is a specific date, you will insert a Date/Time Synchronization.

See also:

Synchronization on a User action