Mouse button as modifier macro

I would like to make a macro that will, for example, cast a spell when hitting the “2” key, but if modified with a side mouse button (my mouse has two extra buttons on the side where your thumb is) will cast a different spell. Is that possible? Thanks in advance.

The btn modifier only works when physically clicking the macro, they don’t take effect when simply holding down the button. That said, depending on the mouse, you could rebind those buttons to ctr/shift/alt (or any combination) and use them as held modifiers.

1 Like