WAIT Command
[WAIT("[time out][wait condition]")]Waits until the timeout expires or the wait condition the client specified
occurs. For this command, the client has to set at least one option, where:
time out(optional)- If the client sets a timeout value in the command statements, the following
units are available in the wait statement.
- msec
- millisecond
- milliseconds
- sec
- second
- seconds
- minute
- minutes
- hour
- hours
wait condition(optional)- For the wait condition option, the client can select the following options:
while cursor at (cursor row, cursor column)- While the cursor is at (cursor row, cursor column), it keeps waiting.
while “string”- While the “string” is somewhere on the screen, it keeps waiting.
while “string” at (cursor row, cursor column)- While the “string” is at (cursor row, cursor column) on the screen, it keeps waiting.
until cursor at (cursor row, cursor column)- Until the cursor moves to (cursor row, cursor column), it keeps waiting.
until “string”- Until the “string” is displayed somewhere on the screen, it keeps waiting.
until “string” at (cursor row, cursor column)- Until the “string” is displayed at (cursor row, cursor column), it keeps waiting.
Examples:
- To wait 10 seconds
[WAIT("10 seconds")] - To wait while
"ABCDEF"is displayed at (2,9) on the screen[WAIT("while ""ABCDEF"" at (2,9)")] - To wait until
"ABCDEF"is displayed at (2,9) on the screen, or after 8 seconds[WAIT("8 seconds until ""ABCDEF"" at (2,9)")]