WoW API: GetMacroIndexByName

Revision as of 16:23, 4 December 2007 by WoWWiki>Pcj

WoW API < GetMacroIndexByName

Return Macro Index For Given Name

Returns macroid = GetMacroIndexByName("name")

Arguments

("name")
"name"
String - The name of macro As Obtainable By GetActionText(slot)

Returns

MacroID
The Numeric Index of the macro

Notes

If there Is two or more macros with the Same Name, it appears to return the highest macroid found.


Example

local macroid = GetMacroIndexByName("Fred")