setMacroCommand
setMacroCommand() Function
Note: This function can only be used in a Trusted Macro
Sets the command that will be run when the Macro Button is pressed. Note because of the way the parser interprets values within [] you may have to use the encode() and decode() functions with the string.
Usage
[h: setMacroCommand(buttonIndex, command)]
Examples
[h: setMacroCommand(1, "[macro('Test@Lib:Test'): '']")]