I use Simple Addon Manager to change to different addon profiles (one for outdoor world and one for PVE). My issue is that changing profile takes like 5 clicks. Is it possible to make a macro instead that can enable/disable certain addons + reload ui/one that changes addon profile, if so, what would that macro look like?
The following macro will disable TomTom
/run C_AddOns.DisableAddOn(“TomTom”, UnitName(“player”))
/reload
Replace TomTom with the name of the addon. you can have many DisableAddOn but only one reload at the end.
To enable
/run C_AddOns. EnableAddOn(“TomTom”, UnitName(“player”))
/reload
Edit: changed quotation mark.
So to disable Auctionator on my character Zkoog on Stormscale, what does the macro look like exactly without the quotation marks?
/run C_AddOns. DisableAddOn(“Auctionator”, UnitName(“player”))
/reload
Auctionator is still enabled after I´ve pressed the macro, it only seems to reload the ui.
Did you copy paste as it, the text of previous post?
If yes, remove the space after AddOns. and change the “ to "
/run C_AddOns.DisableAddOn("Auctionator", UnitName("player"))
/reload
Remember that for insert LUA code and commands it’s always better to use code format / tags, because the forum can change " to “, making it invalid.
To insert code, use either:
- BBCode:
[code]text[/code] - Markdown:
```
text
``` - Html:
<code>text</code>
I have asked before, but to me it makes the most sense. Why cant we assign profiles in addons that are relative to the profile we enable for our layout positioning. This way you only have to change one option.
Atm I have to change 4 addons when I change to certain roles in the game. It would be so much simpler if addons could just request the name of the profile we are using and load a profile that it has been told in relation to that. Then all we would need is a simple /reload command after changing the layout.
OMG I copied the code to Word and Word changed the quotation mark, How stupid can I be
Ty for your advice
Now it worked. Ty Snowlady and Neosaro!! <3
Just realised that the characters run out after 4 rows (macros are limited to 255 characters/letters). Is there any way to have several addons in the same row? Like for example /run C_AddOns.DisableAddOn(“Auctionator”, “BadBoy”, “ElvUI”, UnitName(“player”))? Blizz have apparently recently made it so that addons that could extend the character limit on macros no longer can have that feature.
/Zkoog (OP)
No that’s not possible.
The following script will allow for more name in a macro
/run local t={"TomTom","scrap"};for i=1,#t do C_AddOns.DisableAddOn(t[i],UnitName("player")) end;C_UI.Reload()
Replace
"TomTom","scrap"
with your addons.
Hope it solves your problem.
Is there any way to have some addons being disabled and some enabled (in the same macro)?
Yes
/run local d,e={"TomTom","scrap"},{"idTip","iLevel"};for i=1,#d do C_AddOns.DisableAddOn(d[i],UnitName("player")) end;for i=1,#e do C_AddOns.EnableAddOn(e[i],UnitName("player")) end;C_UI.Reload()
The first list is those you want to disable
"TomTom","scrap"
The second list is those you want to enable
"idTip","iLevel"
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.