PC Access for Windows Reference Guide
for PC Access for Windows 4.30.158
Script Command: idle
Format:
idle;
The idle command temporarily suspends an executing script file. If the block containing the idle command also contains any on commands, the on commands remain active. To terminate script processing completely use the exit command.
The most common use for the idle command is to prevent the PC Access script processor from exiting a block containing multiple on commands until the host sends the text to trigger one of those on commands. If a block contains only one on command, followed by an idle command, you can replace the on and idle with a wait command.
Example:
// This script monitors the entire host session and
// sends "Yes" followed by a carriage return any time the host
// sends the string "Are You There?".
label START;
on "Are You There?" call YES_I_AM;
idle;
label YES_I_AM;
send "Yes^M";
return;
Back to script command list.
[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
|