Macro Help, different actions if clicked or pressed

I want to make a Macro that does action 1 if clicked and action 2 if the keybind is pressed.

My first attempt was:
/cast [button:1] Freezing Trap
/cast [nobutton:1, @player] Freezing Trap

but it didn’t work, since it recognizes the keybind pressed as button 1 (this doesn’t make sense to me).

My last attempt, where the macro is placed on MultiBarBottomLeftButton4:

/click MultiBarBottomLeftButton4 RightButton
/cast [button:1] Freezing Trap
/cast [button:2,@player] Freezing Trap

Even though it looks unorthodox, it works on Beta, but doesn’t work on live.

I think /click ____ RightButton is not working on live (it does on beta).

Is there a better way to write a macro for this?

Optimized macro would be:

#showtooltip
/cast [btn:1] [@player] Freezing Trap

That said, click bindings are royally messed up right now. Not sure if changing the test to btn:2 would help.

Thanks for the answer, I just tried this with my priest, with Shadow Crash (works the same as freezing trap), and it does the same thing whether I press the keybind or click it with my mouse. In both cases I get the green placer.

What I wanted was, if I click I get the green placer, if I press the keybind it places it @player

:frowning:

I just tested and btn:2 works but you’ll need to right click it.

#showtooltip
/cast [btn:2] [@player] Freezing Trap