Text Synchronization
WinTask automatically waits until the next window is displayed before sending its actions to the new window. This automatic synchronization (through the UseWindow function) cannot be made when the text displayed in a window changes but the name of the window does not change. This typically occurs when a task is automated on a mainframe : the name of the emulator Window is always the same ; but each time Enter is pressed, the mainframe eventually sends a new screen with the same name but with different text in the window. This delay depends on how over-loaded the mainframe is. In this case, you can make WinTask wait until it detects new, specific text in the window.
The Text Synchronization dialog can be accessed with the Insert/Synchronization/On Text menu or in Recording mode by clicking in the WinTask toolbar the Synchronization on Text icon.
Click Capture in the Text Synchronization dialog. The mouse pointer changes shape ; draw a rectangle around the text WinTask must wait for before going any further. Release the mouse.
The text is now in the "Text" field. If the Unable to capture text message is displayed, follow the tips given in the message box.
The "Window" field is for information only. It displays the window name where the text must be captured.
Check the Only in this area button if you wish to synchronize only if the text is found in exactly the same place that it was captured.
The text synchronization reports a failure at execution if the specified text 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 paste the synchronization statements into the script.
See also :