Macro [button] differentiating mouseclick from keybind press

/cast [@btn:1 @player] [@btn:??,@cursor] [] death and decay

I’d like death and decay to drop at my feet if I happen to click the button in the UI, or otherwise drop on my cursor if I use the keybind.

I’ve accidentally misclicked D&D while targeting, and had it throw D&D off on the edge of the screen instead of where combat is.

is there a way to do this?

#showtooltip
/cast [btn:1/2,@player] [@cursor] Death and Decay

I prefer to have it show the reticle if you’re not in combat:

#showtooltip
/cast [btn:1/2,@player,combat] [@cursor,combat] [] Death and Decay

that doesn’t work for me .

[btn,@player,combat]

this doesn’t ever trigger

Interesting, looks like btn requires a number param, try [btn:1/2,@player,combat]

Updated my previous post.

btn 1 doesn’t seem to work for me still. the first section gets executed (@player, not @cursor) regardless of whether I click it or use a keybind.

/cast [btn:1,@player] [@cursor] Death and Decay

btn 2 works though

/cast [btn:2,@player] [@cursor] Death and Decay

1 is left click
2 is right click
1/2 is either

1 also triggers the btn click part even when I use a keybind