Fandom

WoWWiki

API GetMacroBody

104,976pages on
this wiki
Add New Page
Talk0 Share
WoW API < GetMacroBody

Returns the body (macro text) of a macro.

body = GetMacroBody(macroIndex or "name")


Arguments Edit

macroID 
number or String - Macro index or name.


Returns Edit

body 
String - The macro body or nothing if the macro doesn't exsist.


Example Edit

local body = GetMacroBody("Flash")
DEFAULT_CHAT_FRAME:AddMessage(body)

Result

#showtooltip
/cast [target=mouseover, help, exists] [help, exists] [target=player] Flash Heal

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.