Odd macro ability question/solution

So basically I need help with the following and really couldn’t think of a good title so here it goes.

I have my storm bolt ability on “mouse button 1”, and because the shifted version of this button is “end” on the keyboard I’m forced to make a separate macro for focus storm bolt which I put on the end button. So my question is, is it possible to write the macro in a way that when press “shift mouse button 1, aka end” the macro will use it on my focus target rather than my current target? this is a simple remedy with a key that can be shifted by just using a shift modifier however can I write it in such a way that allows me to specify what my shift modified key is? and if so do X if not do Y? I hope this makes sense. I’m going to list the two macros I use for storm bolt below. I guess the dream is to make all of these scenarios possible on a single button in a single macro.

mouse button 1 storm bolt macro:

#showtooltip Storm Bolt
/cancelaura Bladestorm
/cast [@mouseover,harm][mod:shift,@focus,harm][@target,harm] Storm Bolt;

end button storm bolt focus macro:

#showtooltip Storm Bolt
/cancelaura Bladestorm
/cast [target=focus] Storm Bolt

“Mouse Button 1” usually means left click.

Do you mean a button on the side of your mouse? If so it’s probably set up to use num pad 1. The num pad works strangely with modifiers. If you can use your mouse software to bind the side buttons to regular keys instead of the num pad that’s probably your best option.

That’s a pretty smart suggestion, in my case my shift mouse button 1 equates to end not sure why. But I didn’t even consider rebinding the button in the mouse software that’s a great idea. I think I’ll explore that route and see if I can get it to work that way. Thanks!

Tweak your macro to this while you’re at it.

#showtooltip
/cancelaura Bladestorm
/cast [mod:shift,@focus,harm] [@mouseover,harm,nodead] [] Storm Bolt

If it helps, I use Num-+*/ for mouse bindings because they don’t suffer from the shift issue. Num5 should be safe too.

Elven, this is the second time you have helped me! thank you so much. if possible I would love help with another macro. Perhaps I could add you or should I just post it here?

1 Like

Just post it. There’s lots of talented regulars on these forums :slight_smile: