WoW:API GetMacroInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Clean up function example so its copy pasteable like other API entries)
m (Using ''local'' as a variable name is bad mojo. Plus, some copy-n-paste errors.)
Line 3: Line 3:
Return information for a macro.
Return information for a macro.


  name, iconTexture, body, local = GetMacroInfo(MacroID)
  name, iconTexture, body, localStore = GetMacroInfo(''name'' or MacroID)
== Arguments ==
== Arguments ==
:(MacroID)
:(''name'' or MacroID)


:;MacroID: Numeric - The ID number of the action to query.
:;''name'' or MacroID: Number/String - The ID number or name of the macro to query.


== Returns ==
== Returns ==


:;name, iconTexture, body, local
:;name, iconTexture, body, localStore


;''name''
;''name''
Line 22: Line 22:
:The contents of the macro
:The contents of the macro


;''local''
;''localStore''
:unknown; apears to be the numeric value 1 or nil.
:unknown; apears to be the numeric value 1 or nil.
== Example ==
== Example ==

Revision as of 18:32, 14 May 2010

WoW API < GetMacroInfo

Return information for a macro.

name, iconTexture, body, localStore = GetMacroInfo(name or MacroID)

Arguments

(name or MacroID)
name or MacroID
Number/String - The ID number or name of the macro to query.

Returns

name, iconTexture, body, localStore
name
The name of the macro
iconTexture
The icon texture path of the macro
body
The contents of the macro
localStore
unknown; apears to be the numeric value 1 or nil.

Example

local name, texture, macrobody, localVar = GetMacroInfo(1)