Name GetQueue
Type Method
Summary Returns a variant array which is a list of queued commands
Prototype VARIANT GetQueue();
Description Returns an array of the currently queued commands (speedwalks etc.).

You might use this if you needed to do something urgently. Retrieve the queue into an array, discard the queue, and then requeue it.

Note: Available in MUSHclient version 3.18 onwards.
VBscript example
dim speedwalkQueue

  speedwalkQueue = World.GetQueue

  If Not IsEmpty (speedwalkQueue) Then
    For Each sw In speedwalkQueue 
       world.note sw
    Next

  End If
Jscript example
commandList = new VBArray(world.GetQueue()).toArray();

 if (commandList) 
   for (i = 0; i < commandList.length; i++)
       world.note (commandList [i]);
PerlScript example
foreach $item (Win32::OLE::in ($world->GetQueue ()))
 {
 $world->note($item);
 }
Returns If there are no commands in the queue then the return value is empty. Use "IsEmpty" to test for this possibility.

Otherwise, it returns a variant array containing all queued commands. Use "ubound" to find the number of commands in the list.

See also ...