WoW:API GetMacroIndexByName: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
{{API/Uncategorized}}
<center>'''GetMacroInfo''' - ''Documentation by [[User:Kaso|Kaso]]''</center>
 
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")
 
 
 
----
__NOTOC__
{{Template:WoW API}}

Revision as of 19:33, 2 February 2006

GetMacroInfo - Documentation by Kaso

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")



Template:WoW API