Macro Manager
Open Macro Manager in the AnoUI menu to create and edit the game’s account and character macros. The upper area manages saved macros. Macro Builder below it helps you assemble the lines and conditions of the current draft.
Opening the editor alone does not enable or change macros. An explicit editing action, such as New or Save, enables the module after the client’s editing checks pass. Work outside combat. These are native game macros, with the game’s normal command and execution limits.
Find a saved macro
| Control | What it does |
|---|---|
| Macro Scope | Choose Account Macros or Character Macros. Account macros are shared across characters on the account. Character macros belong to this character. A UI profile is not a separate macro library. |
| Search Macros | Filter the current scope by macro name. Search is case-insensitive and does not search macro bodies. Clear it to see the scope’s full list. |
| Previous and Next | Browse the matching macros, with up to 18 entries on a page. The page counter shows the filtered list’s current page. |
| Macro counter | Shows used and available slots for the selected scope. This client normally provides 120 account and 30 character slots, while the editor follows the limits actually exposed by the client. |
| Select a macro | Click an entry to load its saved name, icon and text. If you have unsaved edits, the editor asks you to repeat the selection before discarding them. |
Create and save a macro
- Choose the intended Macro Scope, then click New. This prepares a draft, it does not consume a saved macro slot yet.
- Enter Macro Name. Names must contain 1 to 16 characters and cannot contain quotes or control characters. The name must be unique within the chosen scope.
- Choose an icon and enter Macro Text, or use Macro Builder below. A new draft starts with #showtooltip.
- Watch the character counter beside Macro Text. The normal client limit is 255 characters. The editor can hold a longer draft, but cannot save it beyond the client limit.
- Click Save. The editor creates a new native macro or updates the selected one, then checks that the client returned the expected result.
Typing or changing builder controls changes the draft. It does not change a saved macro until Save succeeds. If you switch scopes or select another entry with unsaved work, read the discard message before repeating that action.
Choose an icon
| Control | What it does |
|---|---|
| Icon button | Open the icon picker. Its pages show 40 icons at a time from the native catalog, learned spells and the current icon. Use Previous, Next or the mouse wheel to browse, then click an icon to select it for the draft. |
| Macro Icon field | Enter a supported texture FileDataID, icon name or texture path. Press Enter or leave the field to commit it to the draft. This changes the icon rather than the macro’s commands. |
| Automatic Icon | Select the question-mark icon used for native automatic macro artwork. Combine it with #showtooltip when you want the game to choose the displayed spell or item information from the macro. |
| Close icon picker | Close the picker without selecting another icon. The macro draft remains open. Selecting an icon still requires Save before the saved macro changes. |
Edit, delete and place a macro
| Control | What it does |
|---|---|
| Macro Name and Macro Text | Edit the selected macro’s name or commands. The text area scrolls for longer drafts. The displayed limit counts characters rather than UTF-8 bytes. |
| Save | Write the edited draft to the selected saved macro. A new draft creates a macro instead. Saving requires a valid name, an available destination slot for a new macro, and text within the client limit. |
| Revert | Reload the selected saved macro and discard the draft after the editor’s confirmation if needed. A new unsaved draft returns to its initial state. |
| Delete | Click once to request deletion, then click Delete again to confirm. This removes the selected saved macro from its scope. You can delete an existing macro even when that scope has no free slots. |
| Pick Up | Put the selected saved macro on the cursor so you can place it on an action bar. Clear an occupied cursor first. You can also drag a macro from the library list. This uses the saved macro, rather than unsaved draft text. |
Macro contents are independent of your AnoUI appearance profile. For snapshots of macros, action bars and bindings, use Profiles → Action Profiles. The Macros tab in Blizzard Extended styles the native Blizzard window, while Macro Manager edits the saved macros themselves.
Copy or move between scopes
Save or revert the current draft before transferring a macro. Both transfer actions need a free slot in the other scope and a valid, unique name there.
| Control | What it does |
|---|---|
| Copy to Other Scope | Create a copy in the other scope. The original macro remains in place. The editor selects the new copy afterwards. |
| Move to Other Scope | Click twice to confirm a move. AnoUI creates the destination macro, checks and updates action-bar slots referencing the original, then deletes the original only after those steps succeed. The cursor must be empty. |
Read the result message. If the source or its action slots change during a move, or a slot cannot be updated, AnoUI can keep the original and leave a copy in the destination. Do not assume that the original was removed when the message says it was retained. Copying does not redirect existing action-bar slots.
Build commands one line at a time
Macro Builder and Macro Text are two views of the same draft. Changing a recognised line through the builder updates the text above. Editing Macro Text reparses its lines, and leaving the text field refreshes the selected builder line.
| Control | What it does |
|---|---|
| Macro Line | Choose the line you want to edit. Its number and current text identify it. This changes the selected line, rather than executing it. |
| Add Line and Remove Line | Add a new /cast line or remove the selected line from the draft. The builder keeps at least one editable line. |
| Move Up and Move Down | Move the selected line earlier or later in the macro. Line order matters when the game executes the saved macro. |
| Command | Choose a supported command or Raw Line. #showtooltip and #show control information, /cast and /use perform spell or item actions, and /castsequence, /castrandom and /userandom use their native argument formats. |
| Other command groups | The dropdown also includes casting and attack controls, pet actions, target and focus commands, equipment and action-bar commands, chat, /console, /run, /script and /click. Their behaviour remains the game’s normal macro behaviour. Selecting a command does not execute it. |
| Raw Line | Edit a line the builder does not recognise, or retain syntax you want to enter directly. Unsupported or unparseable lines remain raw instead of being rewritten as another command. |
| Spell, Item or Text | Enter the argument for the selected line or conditional branch. For chat or script-style commands this is their literal text. For a raw line it is the whole line. |
| Known Spells | Choose a learned spell name to insert into the argument. You can also drag a supported spell or item onto the argument field. Dropping an item while /cast is selected changes that command to /use and inserts its item reference. |
Moving between lines or controls does not save the macro. Use Save in the upper area when the complete draft is ready.
Choose the right command
The command menu offers the following groups. The argument field supplies the spell, item, unit name or text required by that command. AnoUI helps edit the line, while the client decides which commands and conditions it can execute.
| Control | What it does |
|---|---|
| #showtooltip and #show | Choose the macro’s tooltip or displayed icon information. These directives do not cast the displayed spell. Automatic Icon lets the game choose its artwork. |
| /cast and /use | Cast a learned spell or use an item. Choose a spell under Known Spells, enter its name, or drag a spell or item into the argument field. A conditional target selects who or where the action is intended for. |
| /castsequence, /castrandom and /userandom | Use the native sequence or random-choice formats in the argument. A sequence still needs a player input for each action, it does not perform a timed rotation automatically. |
| /stopcasting, /cancelaura and /cancelform | Stop a cast, cancel an eligible named aura or leave a form. These can interrupt your own current action, so check the command before placing it above a cast line. |
| /startattack and /stopattack | Start or stop the native auto-attack action. They are separate from casting a spell. |
| Pet commands | /petattack, /petfollow, /petstay, /petmoveto, /petpassive, /petdefensive and /petaggressive control the supported pet action or behaviour. /petautocaston, /petautocastoff and /petautocasttoggle change eligible pet-ability autocasting. |
| Target selection | /target and /targetexact select by the supplied name. /targetenemy, /targetenemyplayer, /targetfriend, /targetfriendplayer, /targetparty and /targetraid use native target selection. /targetlasttarget, /targetlastenemy and /targetlastfriend return to the corresponding previous target. /cleartarget clears it. |
| /assist, /focus, /clearfocus and /follow | Use the native assist, focus, focus-clear or follow action. Add a supported unit target or required name where the command needs it. The chosen target token belongs to this command’s condition group. |
| /tm | Use the client’s target-marker command with its native argument. This is separate from the Raid Tools world-marker sequence. |
| /changeactionbar and /swapactionbar | Change or switch native action-bar pages. This changes the page of existing slots, rather than loading an AnoUI Action Profile. |
| /equip, /equipslot and /dismount | Equip an item, equip into a specified slot or dismount. Equipment and combat restrictions still apply. |
| /stopmacro | Stop processing later lines when its applicable conditions match. Put it before lines you intend it to prevent. |
| Chat and emotes | /say, /party, /raid, /rw, /guild, /yell and /emote use the argument as literal message text. The builder does not add conditional branches to these commands. Saving or selecting the line does not send the message. |
| /console, /run and /script | Use literal console or Lua text. These are raw arguments, rather than spell targets or conditional branches. The game’s normal restrictions apply. |
| /click and Raw Line | /click addresses a supported named game button. Raw Line keeps a complete line that the command menu does not interpret. Neither choice bypasses protected actions. |
Targets and conditional branches
For commands that support conditional arguments, choose Conditional Branch before changing its target, conditions or argument. Branches are alternative parts of the same macro line. The builder inserts their required separators automatically.
| Control | What it does |
|---|---|
| Add Branch and Remove Branch | Add another alternative to the selected line, or remove the selected alternative. Each branch has its own argument and conditions. These controls are unavailable for a raw line or a literal-text command. |
| Conditions | Enter bracketed condition groups. The editor can add the surrounding brackets when you enter one unbracketed group. For example, [@mouseover,help,nodead] requires a living friendly mouseover unit. Press Enter or leave the field to commit it. |
| Add Target | Insert a supported unit token such as @target, @mouseover, @player, @focus, @targettarget, @pet, @pettarget, @cursor or a party unit. Adding a target replaces the first condition group’s existing target token. Default does not insert a target. |
| Add Condition | Choose the condition to prepare, such as exists, help, harm, dead, combat, stealth, mounted, channeling, group, mod, stance, spec, equipped, button, actionbar or known. Choosing it alone does not insert it. |
| Condition Value | Supply a value only when the selected condition needs one. For example, mod can use shift and a valued condition can use the appropriate number or token. Do not include brackets, commas, line breaks or branch separators in this field. |
| Invert Condition | Prepare the negated form, such as nodead instead of dead. It changes the condition that Insert Condition will add. |
| Insert Condition | Add the prepared condition and value to the selected branch. The builder removes an existing matching or opposite token from the first condition group before inserting the new one. |
Conditions inside one bracket group are combined requirements. Additional supported bracket groups and branches keep the game’s macro selection rules. The builder does not bypass spell knowledge, cooldowns, combat restrictions or the requirement for a player input.
Condition and target choices
Add Target offers your target, mouseover, yourself, focus, target’s target, pet, pet’s target, the cursor and party members 1 to 4. The corresponding tokens are @target, @mouseover, @player, @focus, @targettarget, @pet, @pettarget, @cursor and @party1 through @party4. Cursor targeting applies only where the native action supports it.
| Control | What it does |
|---|---|
| exists, help, harm and dead | Test whether the selected unit exists, is friendly, is hostile or is dead. Combine a relationship with nodead when you need a living target. |
| combat, stealth and mounted | Test your combat, stealth or mounted state. Invert Condition prepares the opposite test, for example nocombat. |
| channeling | Test whether you are channeling. A supported spell argument narrows the check to that channel, otherwise leave Condition Value empty. |
| pet | Test for an active pet. Use the native pet argument only if you intend to narrow that condition, otherwise leave its value empty. |
| group, party and raid | group checks your group state and can use a supported party or raid value. party and raid check the selected unit’s respective membership. These tests are different from choosing a party unit as the target. |
| swimming, indoors and outdoors | Test your current movement or location state. They do not move your character or choose a destination. |
| mod, mod:shift, mod:ctrl and mod:alt | mod tests a held modifier. Choose the explicit Shift, Ctrl or Alt entry for one key and leave Condition Value empty for those preset entries. Alternatively choose mod and enter shift, ctrl or alt as its value. |
| stance and spec | Supply the native form or specialization index required by the client. This macro condition is independent of AnoUI profile assignments, it does not switch your form, talents or UI profile. |
| equipped | Supply a supported item or equipment-category argument to test what is equipped. This is a condition, rather than the /equip action. |
| button | Supply a native mouse-button number to test which button triggered the macro. This does not create a keybinding for it. |
| actionbar | Supply the native action-bar page number to test its current state. Use /changeactionbar or /swapactionbar separately when you want a page-changing action. |
| known | Supply the spell identifier required by the client to test spell knowledge. This does not check whether the spell is currently off cooldown. |
Use Invert Condition for a negative test, then Insert Condition to add it. Boolean conditions normally leave Condition Value empty. The builder checks the input format, it does not guarantee that an arbitrary token or argument is meaningful to the client. Read the resulting line before saving.
Restore missing macros
Restore Missing Macros recreates missing macros from the recovery copies saved by Macro Manager. It is not a backup of every macro that has ever existed on your account. Work outside combat and make sure the destination scopes have free slots.
Macros that still exist under the same name are left alone. A macro deliberately deleted through Macro Manager also has its recovery copy removed, so this button does not undo that deletion. For a complete snapshot of macros together with bars and keybindings, use Action Profiles.
Example, a friendly mouseover spell
- Choose Character Macros and New, then give the draft a unique name.
- Keep the first #showtooltip line and choose Automatic Icon.
- Use Add Line, select /cast in Command, then choose a learned friendly spell under Known Spells.
- Choose @mouseover under Add Target. Select help under Add Condition and press Insert Condition.
- Select dead, turn on Invert Condition and press Insert Condition. The selected branch should now have the conditions @mouseover, help and nodead.
- Check Macro Text and its character count, then Save. Use Pick Up to place the saved macro on an action bar.
This creates a spell macro that requires a living friendly mouseover target. It has no fallback branch unless you add one. To add a normal-target alternative, use Add Branch and configure that branch’s own spell and conditions before saving again.