getMacroContext: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=getMacroContext |version=1.4.0.2 |description= Returns information about the source, name, index of the button of the macro being executed as a JSON obje...")
 
No edit summary
Line 14: Line 14:
[r: getMacroContext()]
[r: getMacroContext()]
</source>
</source>
Returns for example:
{"stackSize":1,"trusted":true,"name":"aMacroName","buttonIndex":127,"source":"lib:Test"}


}}
}}
[[Category:Metamacro Function]]
[[Category:Metamacro Function]]

Revision as of 09:45, 20 July 2016

getMacroContext() Function

Introduced in version 1.4.0.2
Returns information about the source, name, index of the button of the macro being executed as a JSON object.

Usage

getMacroContext()

Example

[r: getMacroContext()]

Returns for example:

{"stackSize":1,"trusted":true,"name":"aMacroName","buttonIndex":127,"source":"lib:Test"}