3.3.2.50 Queue

Delay the execution of the script.

Syntax:

queue  {script}

Place the script at the end of the current window message queue. Execution begins when the current window finishes redrawing.

Options:

-p; execute OnIdle

Syntax: queue -p

Execute OnIdle

-ps; execute OnIdle, with context

Syntax: queue -ps

Execute OnIdle, command is substituted with current context first.

Examples:

Example 1

Prepare two workbooks, Book1 and Book2. Make Book2 active, then execute the following script:

queue -p "ty %H;";
win -a Book1;
ty "Hello";
// dumps "Hello Book1"
// Substitue "queue -ps" in the 1st line, to dump "Hello Book2"

See Also: