Using manual synchronization
Use manual synchronization when performance is considered as higher priority than running the script automatically. The synchronization algorithms are reliable, but take more time to run than is necessary.
Procedure
- On the Recording Monitor toolbar, before you enter text, click the Verification Point and Action Wizard icon.
- Drag the Object Finder over the host terminal to select the window object. A thick red line outlines the terminal when selected.
- Click Wait until, and type the text
input. The entry in the script is as follows:
Screen().waitForExistence(); TFrame().inputKeys("logoff{ENTER}");
In this case, the correct window is loaded because of the wait time. You do not need to rely on the synchronization algorithm.
- Change the second line of the previous script:You can send the keystrokes regardless of the state of the terminal determined by the synchronization code.
TFrame(ANY, UNINITIALIZED).inputKeys("logoff{ENTER}");