Command to bring up specific profession window?

So like the title says, is there a command I can use to bring up a specific profession window like leatherworking or alchemy? The keybinds in settings only allow you to bring up the main profession window.

1 Like

Just out of curiosity, is there a reason you can’t just drag the profession to an actionbar slot assigned the keybind you want? (If not, info on why might help get you a more targeted response from those who are more familiar with WoW scripting.)

in retail that is what I do. But in Dragonflight they currently limit you to 5 or 6 action bars. I’m actually paralyzed from the neck down IRL and use a ton of action bars for things, so I’m trying to remove as many buttons as I can to fit with the new limited bars.

I use voice commands for bringing up UI Windows. So creating a “show leatherworking” voice command that will just paste the correct code into the chat window and execute it is what I’m trying to do.

1 Like

Hopefully this works for all the professions you need:

/cast alchemy

But in the beta I’m noticing while this works for alchemy, tailoring and enchanting; it doesn’t work for inscription. I don’t know about leatherworking.

As an alternative you can get deeper into the scripting to accomplish this too.

In BfA there was a bug that some professions like leatherworking need to qualify its type, like /cast Leatherworking(Kul Tiran). I don’t know if that’s the case here for inscription or just one of the many, many–many! holy crap so many–bugs with the Dragonflight API right now.

3 Likes

I copied my druid over and yeah /cast leatherworking doesn’t work.

This does, however:

/run C_TradeSkillUI.OpenTradeSkill(165)

You can open other professions by replacing the 165 with their id below:

164: Blacksmithing
165: Leatherworking
171: Alchemy
182: Herbalism
186: Mining
197: Tailoring
202: Engineering
333: Enchanting
393: Skinning
755: Jewelcrafting
773: Inscription

10 Likes

Ah there we go! Thanks Gello, that does the trick.

There’s also an Enumeration that can be used for those that don’t remember numbers

/run C_TradeSkillUI.OpenTradeSkill(C_TradeSkillUI.GetProfessionSkillLineID(Enum.Profession.Leatherworking))
Enum.Profession.FirstAid
Enum.Profession.Blacksmithing
Enum.Profession.Leatherworking
Enum.Profession.Alchemy
Enum.Profession.Herbalism
Enum.Profession.Mining
Enum.Profession.Engineering
Enum.Profession.Enchanting
Enum.Profession.Jewelcrafting
Enum.Profession.Inscription
Enum.Profession.Archaeology
Enum.Profession.Fishing
Enum.Profession.Cooking
Enum.Profession.Tailoring
Enum.Profession.Skinning

Probably not as useful in this case though.

5 Likes

This fixes the bad, long standing wow bug, where /cast [profession_name] does nothing.