Macro 1(Can Be Placed anywhere you like, even keybound)
Code:
#showtooltip Avenger's Shield
/script local a=GetActiveTalentGroup();if(a==1)then UseEquipmentSet("Holy");SetActiveTalentGroup(2);else if(a==2)then UseEquipmentSet("ret");SetActiveTalentGroup(1);end
/click MultiBarBottomRightButton2
Macro 2(This MUST be placed on Action Bar 5, button 2 (the second one from the left or top) This can be changed by modifying the /click if you must, but it would be much easier to keep it as is )
Code:
/script local a,s,t,l,r,n=GetActiveTalentGroup(),"Strafe","Turn","Left","Right",nil;if(a==1)then n=SetBinding("A",s..l);n=SetBinding("D",s..r);else if(a==2)then n=SetBinding("A",t..l);n=SetBinding("D",t..r);end
Word of warning. This is untested, but it should do what you like
I'll attempt to explain it :P
You will only click macro 1, macro 2 will simply swap your keybinds, but it works under the assumption that you are still in the process of swapping specs, hence the same logic as in the first macro.
The first macro will swap your gearset depending on spec, and then "click" the second macro, which will swap your keybindings based on the spec your currently in.
This macro assumes that your Primary spec is Ret, and that your Secondary Spec is Holy. Tell me if this is a wrong assumption and I'll fix it for it to be the other way. It also assumes that you have two gear sets (utilizing the in-game gear-manager) names "Holy" and "ret", one for each spec.
Let me know if it works for you or not. Based on your post I think this is what you wanted
-Bru
*EDIT!!!!!*
The important thing to remember, is you ONLY click the Macro 1, if you click Macro 2, it'll get the toggle all off :P You only have to click once to swap into your holy spec/gear, and again to swap into your ret spec/gear