API GetMacroIndexByName

Return macro index for a given name.

macroIndex = GetMacroIndexByName("name")

Arguments

 * "name" : String - The name of a macro as obtainable by GetActionText(slot)

Returns

 * macroIndex : The numeric index of the macro or 0 if there's no macro with the given name.

Example
local macroIndex = GetMacroIndexByName("Fred") if macroIndex == 0 then -- You have no macro named "Fred" end