setMacroCommand: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
(Added version change.)
Line 15: Line 15:
[h: setMacroCommand(1, "[macro('Test@Lib:Test'): '']")]
[h: setMacroCommand(1, "[macro('Test@Lib:Test'): '']")]
</source>
</source>
|changes=
{{change|1.3b49|Changed to a trusted function.}}
}}
}}
[[Category:Metamacro Function]]
[[Category:Metamacro Function]]

Revision as of 22:26, 22 March 2009

setMacroCommand() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.3b48
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

setMacroCommand(buttonIndex, command)

Examples

[h: setMacroCommand(1, "[macro('Test@Lib:Test'): '']")]

Version Changes

  • 1.3b49 - Changed to a trusted function.