world.GetCommand

MUSHclient script function (Method) — introduced in version 3.18

Gets the current command in the command window

Prototype

BSTR GetCommand();

Data type meanings

Description

Returns the current contents of the command window, without changing it.

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

VBscript example

world.Note world.GetCommand

Jscript example

world.Note (world.GetCommand ());

PerlScript example

$world->Note ($world->GetCommand ());

Python example

world.Note (world.GetCommand )

Lua example

Note (GetCommand ())

Return value

The contents of the command window.

See also

FunctionDescription
GetCommandListReturns some or all commands from the command history
PushCommandPushes the current command into the command history list
SelectCommandSelects (highlights) the current command in the command window
SetCommandSends text to the command window