Script commands are handled through the shell command editor (.shc file) and are written with the advanced script.
Two different entry points are provided:
Command Help Request
This entry-point is invoked when the command shell requests to display help information for the command, normally via HELP <cmdname> instruction.
Syntax |
bool help(shell::object @shell) |
shell |
Commands shell object |
Result |
Returns true if command executed successfully, false otherwise |
Command Execution Request
This entry-point is invoked when the command shell requests to execute the command.
Syntax |
bool execute(shell::object @shell, const string &in cmdline) |
shell |
Object shell commands |
cmdline |
Invocation command line |
Result |
Returns true if command executed successfully, false otherwise |