v0.13.8

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

nametypedescription
namestringThe name of the macro to be displayed in the UI. The current UI imposes a 16-character limit.
iconFileIDnumber | stringA 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.
bodystring?The macro commands to be executed. If this string is longer than 255 characters, only the first 255 will be saved.
perCharacterboolean?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 ↗.