Technical Support Contact Us   

PC Access for Windows Reference Guide

for PC Access for Windows 4.30.158


Script Command: wait

Formats:

wait for "string";

· The first format of the wait command waits indefinitely for the incoming sequence of characters in "string". If the characters in "string" arrive from the host, script processing continues to the next script command.

wait nnnnn for "string" {timeout sub-command};

· The second format of the wait command waits nnnn milliseconds (1000 milliseconds = 1 second) for the incoming sequence of characters in "string". The "string" may contain wildcards. If the characters in "string" arrive from the host, the next script command after the wait command executes. If you specify an optional timeout sub-command, the sub-command will execute if "string" does not arrive in nnnn milliseconds. The sub-command can be any valid script command with the exception of another wait command, an on command, or a match command.

¨ If you do not specify a timeout sub-command, and "string" does not arrive from the host, your next script command executes.

Example:

// Waits 20 seconds for the characters "login". If "login" does not
// arrive within 20 seconds, the goto sub-command executes.
wait 20000 for "login" timeout goto ERROR;    

This topic has changed for PC Access 4.30.

Back to script command list.


Home Contents Previous Next

[Contents (Javascript menu format)] [Contents (HTML format)] [Search] [Glossary]


Tell me more about this site.
Can't find what you need? See: How to Find It.
Contact us
Report a problem with this page or suggest an improvement for this page.

Last modification date: Friday, January 17, 2003 00:58:55

 

Copyright © 2005 - MFM Software, Inc.
11988 Tramway Drive
Cincinnati, OH 45241
Phone: 513.733.9229
Fax: 513.733.8775
Send comments to webmaster@mfm.com