View Single Post
04-04-14, 04:32 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Macro conditionals only work with macro commands. "/w" and "/run" aren't macro commands, so you can't use macro conditionals with them.

Code:
/run SendChatMessage(IsMouseButtonDown("RightButton") and "retract" or "bid", "WHISPER", nil, "Lootmaster")
This will probably also only work if you have actions trigger on mousedown instead of mouseup in your Interface Options, since otherwise the mouse button is no longer down when the command is executed. Using a modifier key (eg. Shift) would probably work better:

Code:
/run SendChatMessage(IsShiftKeyDown() and "retract" or "bid", "WHISPER", nil, "Lootmaster")
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.

Last edited by Phanx : 04-06-14 at 03:54 AM.
  Reply With Quote