| Name | GetCommandList |
|---|---|
| Type | Method |
| Summary | Returns some or all commands from the command history |
| Prototype | VARIANT GetCommandList(long Count); |
| Description | This returns a variant array of the nominated number of most recent commands (in the command history window). You can get all available commands by requesting a count of zero. (You can get the most recently saved command by requesting a count of 1). If you request more than the available number, then the number of items in the array may be less than that requested. You can get the current command (not yet in the command history list) by using World.GetCommand. Note: Available in MUSHclient version 3.18 onwards. |
| VBscript example | |
| Jscript example | |
| PerlScript example | |
| Returns | If there are no commands in the history list then the return value is empty. Use "IsEmpty" to test for this possibility. |
See also ...