WoW API: GetMacroInfo

From AddOn Studio
Revision as of 18:32, 14 May 2010 by WoWWiki>Egingell (Using ''local'' as a variable name is bad mojo. Plus, some copy-n-paste errors.)
Jump to navigation Jump to search

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)