Page 1 of 1

Macro: Button:1 - Button:2

PostPosted: Mon May 25, 2015 9:19 pm
by Arael
I am out of space on my bars, I need to make some macro for buffs.

I need something like I used in TBC:

/cast [Button:1] something
/cast [Button:2] something else

How to make such thing in vanilla?

Re: Macro: Button:1 - Button:2

PostPosted: Fri May 29, 2015 5:41 pm
by Arael
is it possible?

Re: Macro: Button:1 - Button:2

PostPosted: Fri May 29, 2015 8:57 pm
by Mr_Rosh
Sure.

With Shift:
/script if (IsShiftKeyDown())then CastSpellByName("Healing Touch(Rank 4)") else CastSpellByName("Healing Touch");end

With Ctrl:
/script if ( IsControlKeyDown() ) then DoSomething(); end

With Alt:
/script if ( IsAltKeyDown() ) then DoSomething(); end

Chose as you wish, and remember, Google is your friend :) .
Have a good day !

Re: Macro: Button:1 - Button:2

PostPosted: Sat May 30, 2015 6:41 am
by Arael
Thank you, but is it possible to use Mouse right button and left button instead? I couldn't find anything.

Re: Macro: Button:1 - Button:2

PostPosted: Sat May 30, 2015 9:56 am
by Mr_Rosh
I don't know about this. Try Clique, maybe will help you http://bit.ly/sDc5tT .

Re: Macro: Button:1 - Button:2

PostPosted: Sat May 30, 2015 10:05 am
by Arael
Another question, what if I want to do same thing with Item and not spell?

Re: Macro: Button:1 - Button:2

PostPosted: Sat May 30, 2015 6:55 pm
by Mr_Rosh
You need to get the addon SuperMacro for this.

Re: Macro: Button:1 - Button:2

PostPosted: Sun Jul 19, 2015 8:00 am
by Arael
Mr_Rosh wrote:Sure.

With Shift:
/script if (IsShiftKeyDown())then CastSpellByName("Healing Touch(Rank 4)") else CastSpellByName("Healing Touch");end

With Ctrl:
/script if ( IsControlKeyDown() ) then DoSomething(); end

With Alt:
/script if ( IsAltKeyDown() ) then DoSomething(); end

Chose as you wish, and remember, Google is your friend :) .
Have a good day !

I have issue with spells having (Greater) (Lesser) in their names, the macro simply will not work when I hold my CTRL key if I bound them such part.