getMacroContext: Difference between revisions
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 |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
getMacroContext() | getMacroContext() | ||
</ | </syntaxhighlight> | ||
|example= | |example= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: getMacroContext()] | [r: getMacroContext()] | ||
</source | </syntaxhighlight> | ||
Returns for example: | |||
{"stackSize":1,"trusted":true,"name":"aMacroName","buttonIndex":127,"source":"lib:Test"} | |||
}} | }} | ||
[[Category:Metamacro Function]] | [[Category:Metamacro Function]] |
Latest revision as of 23:59, 14 March 2023
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"}