Name PushCommand
Type Method
Summary Pushes the current command into the command history list
Prototype BSTR PushCommand();
Description Pushes the current contents of the command window into the command history list, and then blanks the current command.

You could use this prior to doing SetCommand, as SetCommand will not work with a command in the command window.

This function returns the text of the command that was in the command window, in case you want to restore it later.

If more than one window is open for this world, it uses the first window in the window list.

Note: Available in MUSHclient version 3.18 onwards.
VBscript example
world.PushCommand
Jscript example
world.PushCommand ();
PerlScript example
$world->PushCommand ();
Returns The original contents of the command window.

See also ...