WoW:API CreateMacro: Difference between revisions

m
replaced "Template:WoW API" with "wowapi"
No edit summary
m (replaced "Template:WoW API" with "wowapi")
Line 1: Line 1:
{{wowapi}}
Creates a new macro command/button.
Creates a new macro command/button.
  CreateMacro(name, icon, body, local, perCharacter)
  CreateMacro(name, icon, body, local, perCharacter)


Line 30: Line 32:


* It is possible to create macros with duplicate names. You should enumerate the current macros using [[API GetNumMacros|GetNumMacros()]] and [[API GetMacroIconInfo|GetMacroIconInfo(macroId)]] to ensure that your new macro name doesn't already exist.
* It is possible to create macros with duplicate names. You should enumerate the current macros using [[API GetNumMacros|GetNumMacros()]] and [[API GetMacroIconInfo|GetMacroIconInfo(macroId)]] to ensure that your new macro name doesn't already exist.
----
__NOTOC__
{{Template:WoW API}}
Anonymous user