CreateMacro
functionimplementedavailable in: camelot
Creates a macro.
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Parameters
| name | type | description |
|---|---|---|
name | string | The name of the macro to be displayed in the UI. The current UI imposes a 16-character limit. |
iconFileID | number | string | A FileID or string identifying the icon texture to use. The available icons can be retrieved by calling GetMacroIcons() and GetMacroItemIcons(); other textures inside Interface\ICONS may also be used. |
body | string? | The macro commands to be executed. If this string is longer than 255 characters, only the first 255 will be saved. |
perCharacter | boolean? | true to create a per-character macro, nil to create a general macro available to all characters. |
Returns
macroId · number · The 1-based index of the newly-created macro, as displayed in the "Create Macros" UI.
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
sources
Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.