WoW:API GetMacroInfo: Difference between revisions
Jump to navigation
Jump to search
GetMacroInfo - Documentation by Nepenthes
m (Changed the variable name "local" to "localVar" as "local"'s an invalid name.) |
No edit summary |
||
Line 3: | Line 3: | ||
Return information for a macro. | Return information for a macro. | ||
Returns "name", | Returns "name", "iconTexture", "body", local = GetMacroInfo(MacroID) | ||
== Arguments == | == Arguments == | ||
:(MacroID) | :(MacroID) | ||
Line 11: | Line 11: | ||
== Returns == | == Returns == | ||
:;name, | :;name, iconTexture, body, local | ||
;''name'' | ;''name'' | ||
:The name of the macro | :The name of the macro | ||
;'' | ;''iconTexture'' | ||
:The texture of the macro | :The icon texture path of the macro | ||
;''body'' | ;''body'' | ||
Line 23: | Line 23: | ||
;''local'' | ;''local'' | ||
:unknown; apears to be the numeric value 1. | :unknown; apears to be the numeric value 1 or nil. | ||
== Example == | == Example == | ||
local name, texture, macrobody, localVar = GetMacroInfo(1) | local name, texture, macrobody, localVar = GetMacroInfo(1) |
Revision as of 15:24, 29 December 2006
Return information for a macro.
Returns "name", "iconTexture", "body", local = GetMacroInfo(MacroID)
Arguments
- (MacroID)
- MacroID
- Numeric - The ID number of the action to query.
Returns
- name, iconTexture, body, local
- name
- The name of the macro
- iconTexture
- The icon texture path of the macro
- body
- The contents of the macro
- local
- unknown; apears to be the numeric value 1 or nil.
Example
local name, texture, macrobody, localVar = GetMacroInfo(1)