WoW:API GetMacroInfo: Difference between revisions

m
Move page script moved page API GetMacroInfo to WoW:API GetMacroInfo without leaving a redirect
m (Removed extra = in example)
m (Move page script moved page API GetMacroInfo to WoW:API GetMacroInfo without leaving a redirect)
 
(8 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<center>'''GetMacroInfo''' - ''Documentation by [[User:Nepenthes|Nepenthes]]''</center>
{{wowapi}}
Return information about a macro.
name, iconTexture, body, isLocal = GetMacroInfo("name" or macroSlot);


Return information for a macro.
Returns "name", iconTextureID, "body", local = GetMacroInfo(MacroID)
== Arguments ==
== Arguments ==
:(MacroID)
;name : String - Name of the macro to query.
 
OR
:;MacroID: Numeric - The ID number of the action to query.
;macroSlot: Number - Macro slot ID to query. Slots 1 through 36 are general macros; 37 through 54 are per-character macros.


== Returns ==
== Returns ==
 
;name : String - The name of the macro.
:;name, iconTextureID, body, local
;iconTexture : String - Path to the icon texture currently displayed for the macro.
 
;body : String - Macro contents.
;''name''
;isLocal : Flag - unknown.
:The name of the macro
 
;''iconTextureID''
:The texture of the macro
 
;''body''
:The contents of the macro
 
;''local''
:unknown; apears to be the numeric value 1.
== Example ==
local name, texture, macrobody, local = GetMacroInfo(1)
 
 
 
----
__NOTOC__
{{Template:WoW API}}
[[Category:API Functions|GetMacroInfo]]
[[Category:API Action Functions|GetMacroInfo]]
Anonymous user