[Home] [Downloads] [Search] [Help/forum]


Script function


Read about scripting




Gets the current command in the command window


BSTR GetCommand();

View list of data type meanings


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.

Available in MUSHclient version 3.18 onwards.

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 ...


(GetCommandList) Returns some or all commands from the command history
(PushCommand) Pushes the current command into the command history list
(SelectCommand) Selects (highlights) the current command in the command window
(SetCommand) Sends text to the command window

(Help topic: function=GetCommand)

Documentation contents page

Search ...

Enter a search string to find matching documentation.

Search for:   

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]