Script Command: idle


(Contents)(Previous)(Next)

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;


(Contents)(Previous)(Next)