WoW:API GetMacroBody: Difference between revisions
Jump to navigation
Jump to search
(Page created) |
m (Move page script moved page API GetMacroBody to API GetMacroBody without leaving a redirect) |
(No difference)
|
Latest revision as of 04:46, 15 August 2023
← 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