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


Register forum user name Search FAQ

MUSHclient scripting

Description of MUSHclient world function: world.GetInternalCommandsList


Name GetInternalCommandsList
Type Method
Summary Returns a list of the internal MUSHclient command names
Prototype VARIANT GetInternalCommandsList();
Description

This returns a variant array of the internal MUSHclient command names. You can use any name in this list in the DoCommand function. You can also use:

/world.Debug "internal_commands"

to see the list shown in the output window.


Note: Available in version 3.39 onwards.


VBscript example
For Each command In GetInternalCommandsList
    world.Note command 
  Next
Jscript example
commandList = new VBArray(world.GetInternalCommandsList ()).toArray();
  for (i = 0; i < commandList.length; i++)
      Note (commandList [i]);
PerlScript example
foreach $item (Win32::OLE::in ($world->GetInternalCommandsList()))
 {
 $world->note($item);
 }
Python example
for c in world.GetInternalCommandsList  : world.Note (c)
Lua example
for k, v in pairs (GetInternalCommandsList ()) do 
  Note (v) 
end
Returns It returns a variant array containing the names of the internal MUSHclient commands. Use "ubound" to find the number of commands in the list.
Introduced in version 3.39

See also ...

Function Description
DoCommand Queues a MUSHclient menu command

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]

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.

[Home]


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 HostDash]