getMacroContext

From RPTools Wiki
Revision as of 09:45, 20 July 2016 by Wolph42 (talk | contribs)
Jump to navigation Jump to search

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"}