grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » Cmd(string[, handle]) | Version 2.2 |
The Cmd Lua function executes a command in the grandMA3 command line. It is executed in a Lua task - not the Main task (standard typed commands are run in the Main task). It is executed synchronously, and it blocks the Lua task while executing. This means that a bad command has the potential to block the system.
Alternative functions are CmdIndirect() and CmdIndirectWait().
The returned string does not need to be used.
This example executes the command "ClearAll" in the command line.
Lua |
return function() |