Register forum user name Search FAQ

MUSHclient scripting

Description of MUSHclient world function: world.SelectCommand


Name SelectCommand
Type Method
Summary Selects (highlights) the current command in the command window
Prototype void SelectCommand();
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.


Note: Available in version 3.18 onwards.


VBscript example
world.SelectCommand
Jscript example
world.SelectCommand ();
PerlScript example
$world->SelectCommand ();
Python example
world.SelectCommand 
Lua example
SelectCommand ()
Returns Nothing.
Introduced in version 3.18

See also ...

Function Description
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

Search for script function

Enter a word or phrase in the box below to narrow the list down to those that match.

The function name, prototype, summary, and description are searched.

Search for:   

Leave blank to show all functions.


Return codes

Many functions return a "code" which indicates the success or otherwise of the function.

You can view a list of the return codes


Function prototypes

The "prototype" part of each function description lists exactly how the function is called (what arguments, if any, to pass to it).

You can view a list of the data types used in function prototypes


View all functions

[Back]

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