Register forum user name Search FAQ

SelectCommand

Script function

world.SelectCommand

Read about scripting

Type

Method

Summary

Selects (highlights) the current command in the command window

Prototype

void SelectCommand();

View list of data type meanings

Description

Selects the command in the command window.

The intention here is to be used by scripts that place text in the command window. By selecting it, the player can discard the selected command by simply starting to type.

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


Jscript example

world.SelectCommand ();


PerlScript example

$world->SelectCommand ();


Python example

world.SelectCommand 


Lua example

SelectCommand ()


Return value

Nothing.


See Also ...

Functions

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

(Help topic: function=SelectCommand)

Documentation contents page


Search ...

Enter a search string to find matching documentation.

Search for:   

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