
One of my buddies from Conquest, the resto-shamantastic Catrii, asked me a question this week about setting up mouseover macros. I thought the explanation might benefit the community as a whole, especially as many of us are cleaning up our UIs in an attempt to be faster and more accurate once Ulduar hits. Here’s a short guide to my preferred UI-altering technique: the mouseover macro.
Mouseover what?
A mouseover macro is a series of commands that lets you press a single button (on either your keyboard or your mouse) to heal the target that your mouse pointer is currently hovering over. It replaces tab or click targeting as a quick way to pick up heal targets. With the standard, unmodified interface, healing is a 3-step process: 1) decide who to heal, 2) left click to target her, and 3) click the spell on your action bar or press the keystroke bound to it. This is a very slow process that requires you to move your hand not once but twice. Mouseover macros let you target a player and cast a spell in just one movement. As a note, I’m using druid spells as examples in this post, but mouseover macros will work for any healer. Just substitute in your spells of choice!
Examples
To make a basic mouseover macro, go in your character-specific macros window and click “New.” You’ll be prompted to choose a name and an icon for your macro. I usually assign a two-letter code for the spell. For example, I use LB for Lifebloom and RJ for Rejuvenation. But you can call it pizza, and believe me, it won’t matter. After a while, your fingers will learn the key binding and you won’t need to look. I prefer to choose highly individual (and funny) icons for mine, but you can also duplicate the original spell icon, as I will explain below.

Once you have your name and icon, go into the dialog box and type your commands one per line. Each command line starts with a / just like when you type commands manually. I don’t personally mess with cast sequences, and I actually think it’s best if healers make each macro cast only one spell.
Here are a couple of simple examples for what you might put into a mouseover macro. As you can see, the name “mouseover macro” comes from the first line, the one that lets you target by hovering over a player’s health/information bar in your unit frames or the Blizzard default UI.
/target mouseover
/cast Lifebloom/target mouseover
/cast Rejuvenation
If you want the Blizzard standard spell icon to display instead of using a new one of your choice, write your macro as shown below and choose the red question mark as your icon. The #showtooltip command will update that question mark to the default icon for that spell.
#showtooltip
/target mouseover
/cast Lifebloom
As per reader Llanion’s suggestion, if you would like to cast a spell on mouseover without switching your target (keeping your target set to the MT or the boss), write your macro as below:
/cast [target=mouseover] Lifebloom
Fellow blogger Keeva contributed another version, which you’ll see below. And if you haven’t been to Keeva’s blog, go now! Well, as soon as you finish reading my post, that is.
#showtooltip
/cast [target=mouseover,help] Lifebloom; [help] Lifebloom; Lifebloom
As per Keeva’s explanation, this macro means:
“If I have a mouseover target, cast Lifebloom on them
If I don’t have a mouseover target but I have a normal target, cast Lifebloom on them
if I don’t have a mouseover target or normal target, cast Lifebloom on me.”
These examples represent the very simplest incarnations of the macro, no frills. You can add lines to your macro if you’d like to, say, use a trinket with your spell.
Here’s a macro you might use to link up your Swiftmend spell with the effect from the Living Ice Crystals. Doing this is called “slaving” a trinket to a spell.
/target mouseover
/cast Swiftmend
/use Living Ice Crystals
/script UIErrorsFrame:Clear()
Don’t forget to put in the line to clear the error message! Otherwise you’ll get annoyed by red text and alarm sounds if you hit the macro when the trinket isn’t off cooldown. There is some debate about whether to slave a trinket with an on-use effect to another spell, but personally I’m all for it. Your trinket has a greater impact overall if you use it any time it’s up.
Ok, I wrote my macro–now what?
Here’s the tricky part — keybinding the macros to a particular position on your action bars. I keybind my macros to a position on the standard action bars as I don’t use mods like Bongos or Bartender. Follow these steps to bind a keystroke to a particular location on an action bar using the Blizzard default UI.
1. Press the escape key
2. Click on Keybindings

3. Scroll through the long list until you see the name of whichever action bar you are planning to populate with your mouseover macros. I favor Right Action Bar, as you can see below.
4. In the Key 1 column, click one of the red boxes. Once you’ve selected it, just press the key you want to bind to that place. You’ll see the results displayed on your interface, illustrated below.

5. Once you’ve selected your new key codes, hit Okay. If you don’t, kiss your changes goodbye! Go ahead and laugh, but I’ve made this mistake many times.

6. Next, hit /macro to bring up your macros interface. Click and drag the icon for the desired macro onto your action bar. Match it to the space now labeled with the keystroke you want to assign to the spell.
![]()
Special Cases
Action bar mods like Bongos or Bartender generally have different names for action bars and you have to configure the keybindings from within their configuration menu. Chances are if you’re savvy enough to set them up in the first place, you’ll know how to configure the keybindings.
A gaming mouse also takes an extra level of configuration, and you’ll need to consult your mouse manual to figure out how to bind the extra mouse buttons to keystrokes. The software always comes standard with the mouse. On my Razer Death Adder mouse, I assign the special buttons to F9, F10 and F11. They now function just like keys.
Charting your key bindings
The point of this exercise is to set yourself up for comfort and speed. Here’s what I do. In addition to the mouse buttons, I always bind some keys I can easily reach on my left hand: 1,2,3,4, F, G, R, C, V. Sometimes I overwrite a function I actually use, like the command to toggle the character panel, and I make sure to bind it somewhere else on my keyboard. If you really never turn with the keyboard, A and D are available real estate as well. I recommend that you never, ever, ever bind Q or E: you will need to strafe some time or other. If you want to use Q or E, make sure you have strafe available somewhere else. The same applies to the space bar–don’t be caught on the ledge without a way to jump! I have smallish hands and a short reach, so 1,2,3, and T are a little far out for comfort. Somehow I can reach 4 really well…it’s a mystery. I have offensive spells on 1-3 and push-to-talk on T. I keep my mount on V on all characters for those quick getaways. Below is a chart of where I put the mouseover macros for my major heals.
Click wheel: Lifebloom
Additional mouse button 1 (thumb): Rejuvenation
Additional mouse button 2 (thumb): Swiftmend
F: Nature’s Swiftness/Healing Touch
G: Wild Growth
R: Regrowth
C: Nourish
4: Innervate
My key bindings are based on personal preference, and yours should be too. I have an approximately equal number of casts on the left hand and the right hand, and that helps reduce repetitive stress injuries. I made sure that I could easily reach my “best” spells and that they fit comfortably in my hand.
You can use your macros to modify your behavior and correct bad habits. Rejuvenation is the very easiest spell for me to reach–do you think I would have put Healing Touch there? I also use the letters to remind me if possible. I tried Wild Growth on F, but I kept wanting to hit G for Growth, so I just went with it. Muscle memory ensures that you will grow accustomed to your keybindings–wherever they are–with practice. The only trouble I ever have involves the click wheel. My best click wheel advice is to either stay away from binding the scroll up/scroll down function or to bind them to the same thing. If you can differentiate those two movements well, more power to you! As for me, I only bind the button press function. Even so, it can be awkward to Lifebloom while mouse turning, but I’ve gotten used to it (and I don’t spam LB as much as I did back in BC. In Hyjal, I had the click wheel AND F bound to Lifebloom). If you want a clean-looking interface, you can set up all your macros on one action bar (for example, RightActionBar) and then un-display it once you know the keybindings and clicks by heart. Your macros will work whether or not an icon actually displays on your screen.
What unit frames do I use mouseover macros with?
Mouseover macros pair really well with most unit frames. I’ve used them with both Grid and X-Perl. Pitbull works just as well from what I hear, but I’ve never tried it.
Are there mods that can set up mouseover macros for me?
Healbot supports them to the point that they’re pretty much built-in, and Clique is essentially a mouseover mod. I prefer my homegrown solution because it’s extremely customizable, and now that macros sync between computers, keeping them in shape is a cinch.
But what if you like the mouseover idea and want less set up? Try Healbot or unit frames + Clique. The one drawback to Clique is that it encourages you to do double key combos, as in Shift+right click for Rejuvenation. Any time you have to press two keys to hit a heal, you lose precious time. I know this quite well–I used to use Shift+F for Rejuvenation, with the result that I almost never cast it. Lifebloom (F) was a lot faster. Since then, I’ve gotten a 5-button mouse and I have all my heals bound to a single key or click.
Common Macro Mischief
Here’s a list of the mistakes I’ve seen some players make. Try to avoid them as you learn to play with mouseover macros!
1. Binding the left and right click of the mouse to a spell. Don’t do it. You still need to be able to target, inspect, invite, etc. Some unit frames (I think Healbot) let you use left and right click to heal when you’re hovering on the frames and return those clicks to their normal functions when you’re not mousing over health bars, but I wouldn’t try it without the mod. That’s a macro that’s too complicated for my taste.
2. Letting your macros do too much for you. As I’ve said, I don’t like cast sequence macros for healing. Healing will always be at least partly reactive, and you need to be fully in control of spell choice at all moments.
3. Combining two abilities that invoke the GCD in a single macro. You’ll have to hit it twice. I believe this is the case with castsequence macros as well–you have to click for every cast in the sequence.
4. Misunderstanding trinket cooldowns. If you slave two trinkets to a spell, it’s very likely that only one of them will go off at a time. They might share a cooldown, or there might be a hidden cooldown of 45s or so preventing you from blowing both at once.
5. Changing targets without meaning to. Make sure you’re in control of where your pointer is at all times. Mouseover macros work not only on unit frames but on the avatars themselves. You can use mouseover macros for what Matticus calls “heads-up healing,” but beware that you could also switch targets unintentionally. This is why mouseovers are dangerous for dps–they were more so in the age of crowd control.
Disclaimer
I’m no expert on mods or UIs. I try to play with the standard interface when I can because I like as little clutter as possible, and macros are part of that. If you want to learn more about UI building, I’ll refer you to Keeva’s Healbot v. Grid series. I’ve learned so much from her. There’s also a topic going at PlusHeal forums with more macros for other classes, including some that are more complex than the ones I’ve talked about here. Some of that information is outdated, so be sure you read the parts of the discussion pertinent to WoTLK. I’m also interested in hearing what the community has to add to my thoughts on mouseovers. If you have an idea or clarification, please post it in the comments and I’ll try to keep this little guide updated and corrected.


Trackbacks and Pingbacks
[...] The idea here is that you’ll use your (right) mouse hand to hover your cursor over your raid frames (using something like Grid) and use your left hand to click a key nearby to cast a healing spell on them. No cursor clicking required to select your target to cast. http://www.worldofmatticus.com/2009/03/23/a-guide-to-mouseover-macros/ [...]
[...] up mouseover macros in WoW that let you hover your cursor over Grid and smack your regular spell keys to heal your [...]
[...] a target and then hit a button to cast a spell on whoever is under the mouse cursor. I use mouseover macros and a field of buttons mapped to letter keys. Clique is also popular. Check out an old video of our [...]
71 Comments
Hi Iaxis,
The %t in your macro is looking for an actual target, so that’s why it can’t announce properly. There’s %t for target, %f for focus, but no %m for mouseover as far as I know.
Try:
/script SendChatMessage(“Casting Pain Suppression on ” .. UnitName(“mouseover”), “RAID”)
.-= Keeva´s last blog ..Glyph of Rapid Rejuvenation and 25man raid healing =-.
I have a general question about mouseover targets.
I recently noticed that taking my cursor over my own character does NOT highlight it like it does other characters. My character does get highlighted when I mouse over my unit frame. It also works fine for any other character (but my own) whether player or npc.
The result of this is my mouseover macros only work for myself when I mouse over my unit frame, not when I mouse over my character itself. I was wondering if this is default behavior or I have been dumb enough to select some wrong option somewhere.
This is one of the most useful write ups i have found so far. and the comments left by people help explain even more.
i have just hit 70 with my 1st healing character (druid) and healbot was getting harder and harder with all the mouse binds (shift+alt+spinroundonchair+rightclick= NS+HT).
i have used this info and now have all my spells mouseover macro’d for use with grid.
many thanks guys
Gig
Template for healers:
Note:The first test in [ ] that tests true will apply and the following tests are ignored.
#showtooltip
/cast [@mouseover, help, nodead] [@mouseovertarget, help, nodead] [help, nodead] [@targettarget, help, nodead] [@player] Flash Heal
Logical Tests are grouped and flow as follows:
1 — If unit or unit frame under mouse pointer is friendly and alive, then cast Flash Heal on the unit under the mouse pointer, else…
2 — If unit or unit frame under mouse pointer is unfriendly, and their target is friendly and alive, then cast Flash Heal on their target, else… (i.e. if you mouse over the boss and they have the tank targeted, your heal lands on the tank.)
3 — If you have a friendly unit targeted and it’s alive, then cast Flash Heal on them, else…
4 — If you have a unit targeted and their target is friendly and alive, then cast Flash Heal on their target, else… (i.e. if you have the boss actively targeted, your heal will land on their current target.)
5 — Cast Flash Heal on self
If you include [@player, nogroup] it will ignore mouseover and targettarget if you are not in a group… always self-casting instead. IMO, not very helpful if you’re inclined to jump to someone’s aid in a PVP realm or rescue a lowbie player who bit off a few more Defias Cutpurses than they can handle. If you don’t want to be healing random people when you’re solo, what I would do is this:
#showtooltip
/cast [@player, nogroup] [@mouseover, help, nodead] [@mouseovertarget, help, nodead] [help, nodead] [@targettarget, help, nodead] [ ] Flash Heal
The nogroup test is first so that it will override everything else. The open brackets are added at the end to prevent an error if all of the tests are false. Since it’s blank it always returns true. If you leave the autoselfcast turned on in your interface options, it will still cast on yourself if all of the other tests are false.
Hope this helps.
(If your macros start getting a bit long with all of these tests, check out a macro addon such as BindPad.)
Just realized you could rearrange that nogroup one to work a little better…
#showtooltip
/cast [help, nodead] [@player, nogroup] [@mouseover, help, nodead] [@mouseovertarget, help, nodead] [@targettarget, help, nodead] [ ] Flash Heal
By moving [help, nodead] first, an actively targeted friendly target will still get your heals, followed by yourself. If you are ungrouped, it stops there.
LOL
I Just realized that an active target while grouped would override mouseover casting.
That just goes to show how much you can customize if you rearrange the tests to suite your preferences.
#showtooltip
/cast [help, nodead, nogroup] [@player, nogroup] [@mouseover, help, nodead] [@mouseovertarget, help, nodead] [help, nodead] [@targettarget, help, nodead] [ ] Flash Heal
That should work with the following priority system:
Ungrouped:
1. Your active target if friendly and alive
2. Yourself
Grouped:
1. The unit under your mouse pointer (mouseover) if friendly and alive
2. Mouseover’s target if mouseover is unfriendly and mouseover’s target is alive and friendly
3. Your active target if they are friendly and alive
4. Your target’s target if their target is friendly and alive
5. Yourself
Change 3:
- removed unnecessary spaces & semi-colon
- added key to override targeting with a self-cast instead
#showtooltip
/cast [mod:alt,@player][@mouseover,help,nodead][@mouseovertarget,help,nodead][help,nodead][@targettarget,help,nodead][] Flash Heal
#showtooltip
/cast [mod:alt,@player][help,nodead,nogroup][@player,nogroup][@mouseover,help,nodead][@mouseovertarget,help,nodead][help,nodead][@targettarget,help,nodead][] Flash Heal
iam trying to use a simple mouseover macro for my priest
/target mouseover
/cast Renew
(i have tied all with help brackets etc none works)
but this shit doesnt work for me anywhere .in party/raid and bgs..nothing happens if i click or hoverover a players health/information bar in my unit frames ..any suggestions why..many thx
@ James
/cast [@mouseover][] Renew
You might want to add “help, nodead” to avoid issues if your mouse is over an enemy or dead player. #showtooltip will show the tooltip for the Renew spell if you mouse over the macro and it will display the Renew icon if you select the question mark icon in the macro setup menu.
#showtooltip
/cast [@mouseover,help,nodead][] Renew
… with that, the mouseover will only do it’s thing if the target under the mouse pointer is alive and friendly, otherwise renew will cast as normal (friendly target if you have one, self-cast if you have that enabled.)
Towards the end of this guide you state that these macros work with grid.
I have not been able to get them to work with either grid or the default UI.
The macros bound to my mouse wheel up and down work fine but the rest of the buttons on my mouse only work if I am mouse-ing over the avatar not the unit frame.
This makes healing challenging having to discern the player’s avatar among all the aoe effects,etc.
I know my macros are correct because as I said they do work perfectly as long the mouse is over the actual avatar of the player/npc. So what is wrong here?
please help?!?!?
Alex – disable ‘click through’ on Grid.
hi im having the same problem however i use tukui and the unit frames that go with this. there are no options to enable/disable click through. this is the case with any mouseover macros
So, it’s been a few months, but I got it!
This macro will cast Pain Suppression on a mouseover target, and whisper them a custom message! Works with my Grid+Clique just dandy!
#showtooltip Pain Suppression
/cast [@mouseover] Pain Suppression
/script local n,r=UnitName”mouseover”;if(r)then n=n..”-”..r;end;SendChatMessage(“Pain Supression is UP on you!!”,”WHISPER”,nil,n)
Thanks! It was really helpful, it’s great to learn something in such a friendly vocabulary.
hey if any one could help would be grate
I am looking for a healing adon like heal bot for pvp but I have noticed the heal bot does not show if the party member is out of range that well
@afkuheal – first, love the name.
Second, that issue is one of the main reasons I personally began using Grid – those out of range are greyed over a bit, allowing you to focus only on those that are within range. I’m not sure if the new ‘gridlike’ interface in game does that or not, I haven’t run a BG yet.
@the author – Thank you for the article, I have been looking for things that will help with healing, and some of these will do the trick, with some tweeking I will be ready for tomorrow’s xpac release!
yer i found using clique and xpearl works realy well for pvp healing just set xpearl to 30 yard ranged detect and i love it clique is like a mouse over macro but you can bind it like heal bot i can be used with billzards raid frames grid any other raid frame really
Hey really nice guide.
Just some questions, whats the difference with Llanion’s macro and Keeva’s? Whats the [help] part for?