PickupMacro

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Places a macro onto the cursor.

PickupMacro(index or name)

Arguments

index
number - The position of the macro in the macro window, from left to right and top to bottom. Slots 1-120 are used for general macros, and 121-138 for character-specific macros.
name
string - The name of the macro, case insensitive.

Example

  • Picks up the first character macro.
PickupMacro(121)
  • The macro named "Reload" is placed on the cursor. If there is no such named macro then nothing happens.
PickupMacro("Reload")