getMacroContext: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Conversion script moved page getMacroContext to GetMacroContext without leaving a redirect: Converting page title to first-letter uppercase)
(No difference)

Revision as of 22:30, 9 February 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"}