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.
→ WoW API
Return macro index for a given name.
macroIndex = GetMacroIndexByName("name")
- String - The name of a macro as obtainable by GetActionText(slot)
- The numeric index of the macro or 0 if there's no macro with the given name.
- Macros are indexed 1-36 for "global" macros and 37-54 for character-specific macros.
- If there is two or more macros with the same name, it appears to return the highest macroIndex found.
local macroIndex = GetMacroIndexByName("Fred") if macroIndex == 0 then -- You have no macro named "Fred" end