setMacroCommand

From RPTools Wiki
Revision as of 14:33, 13 December 2008 by Craig (talk | contribs) (New page: ==Function setMacroCommand== {{TrustedOnlyFunction}} Sets the command that will be run when the Token:Macro Button is pressed. Note because of the way the parser interprets values w...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function setMacroCommand

This function can only be called from 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'): '']")]