Can you make a macro that works for whatever profession is in the first profession slot?
Open first primary:
/run C_TradeSkillUI.OpenTradeSkill(select(7,GetProfessionInfo((GetProfessions()))))
Open second primary:
/run C_TradeSkillUI.OpenTradeSkill(select(7,GetProfessionInfo((select(2,GetProfessions())))))
Open first on left click, second on right click:
/run C_TradeSkillUI.OpenTradeSkill(select(7,GetProfessionInfo((select(GetMouseButtonClicked()=="RightButton" and 2 or 1,GetProfessions())))))
Can that be made to toggle profession 1 with left click and to toggle profession 2 with alt+left click?
Change
GetMouseButtonClicked()=="RightButton"
to
IsAltKeyDown()
What about making it toggle?
/run if ProfessionsFrame:IsVisible() then C_TradeSkillUI.CloseTradeSkill() else C_TradeSkillUI.OpenTradeSkill(select(7,GetProfessionInfo((select(IsAltKeyDown() and 2 or 1,GetProfessions()))))) end
The will close the tradeskill window if it’s up, or open second skill if alt is down, or first skill otherwise.
If you want it to do more, such as updating the icon with the profession, I recommend an addon. (Macros can’t update their own icon without being run so it’d require an addon to make it shown on login.)