world.GetInternalCommandsList

MUSHclient script function (Method) — introduced in version 3.39

Returns a list of the internal MUSHclient command names

Prototype

VARIANT GetInternalCommandsList();

Data type meanings

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.

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

Return value

It returns a variant array containing the names of the internal MUSHclient commands. Use "ubound" to find the number of commands in the list.

Related topic

Information

See also

FunctionDescription
DoCommandQueues a MUSHclient menu command