Macro: Button:1 - Button:2

Macro: Button:1 - Button:2

by Arael » Mon May 25, 2015 9:19 pm

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?
User avatar
Arael
Senior Sergeant
Senior Sergeant
 

Re: Macro: Button:1 - Button:2

by Arael » Fri May 29, 2015 5:41 pm

is it possible?
User avatar
Arael
Senior Sergeant
Senior Sergeant
 

Re: Macro: Button:1 - Button:2

by Mr_Rosh » Fri May 29, 2015 8:57 pm

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 !
User avatar
Mr_Rosh
Senior Sergeant
Senior Sergeant
 

Re: Macro: Button:1 - Button:2

by Arael » Sat May 30, 2015 6:41 am

Thank you, but is it possible to use Mouse right button and left button instead? I couldn't find anything.
User avatar
Arael
Senior Sergeant
Senior Sergeant
 

Re: Macro: Button:1 - Button:2

by Mr_Rosh » Sat May 30, 2015 9:56 am

I don't know about this. Try Clique, maybe will help you http://bit.ly/sDc5tT .
User avatar
Mr_Rosh
Senior Sergeant
Senior Sergeant
 

Re: Macro: Button:1 - Button:2

by Arael » Sat May 30, 2015 10:05 am

Another question, what if I want to do same thing with Item and not spell?
User avatar
Arael
Senior Sergeant
Senior Sergeant
 

Re: Macro: Button:1 - Button:2

by Mr_Rosh » Sat May 30, 2015 6:55 pm

You need to get the addon SuperMacro for this.
User avatar
Mr_Rosh
Senior Sergeant
Senior Sergeant
 

Re: Macro: Button:1 - Button:2

by Arael » Sun Jul 19, 2015 8:00 am

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.
User avatar
Arael
Senior Sergeant
Senior Sergeant
 


Return to Addons & macros