Addon on/off macro

is there any way to have something like this turn ALL of my macros off without having to list them individually?

/run C_AddOns.DisableAddOn(“BetterWardrobe”, UnitName(“player”))
/reload

Likely not, but I figured I’d ask the macro guru’s here just to be sure.
Better wardrobe is one of my favorites but MAN does it cause problems when i get into instances.

Thinking Id like to be able to turn them all off quick with a macro in case I forget before I get into a run.

Huh? Macros execute once when you press them, there’s no on or off.

this macro turns Better wardrobe off

/run C_AddOns.DisableAddOn(“BetterWardrobe”, UnitName(“player”)) /reload

this one turns it back on.

/run C_AddOns.EnableAddOn("BetterWardrobe", UnitName("player")) /reload

Im looking to see if there is a macro just to blanketly turn them all off…disable…whatever …or if they all have to be listed in any macro used.

:+1:

So you’re looking for a macro to turn addons off?

1 Like

right.
some addons are getting really screwy when I go into instances. Especiallly Better wardrobe.
I have that macro to turn that one off if I forget before I go into a dungeon…just got to wondering if theres a macro that will just disable them all and reload instead of having to hit esc…options…etc…which leaves me standing there if I forget before going in…and the tank is GONE by the time get done disabling them lol.

The macro does it much faster…just curious if there is one for disabling ALL of theaddons in one shot… :+1:

The C_Addons name space has the methods find out how many addons you have, if they’re enabled and if so, disable them.

https://warcraft.wiki.gg/wiki/Category:API_namespaces/C_AddOns

Getting it to fit in a single macro might be the tricky part.

1 Like

yeah…kinda figuring its not a thing. hoping it was because I’ll get into a dungeon and try to fire a shot and it does that thing of ‘an addon is screwing up your game’ lol…leaving me having to try to fix it and the tank runs off in the meantime.

I can disable beforehand, but you know how the queue is…is it gonna be 2 minutes o 20 minutes so I dont want to disable them till just before I port into the dungeon.

If its not a thing I can put them all in that macro if they’ll all fit, lol. Probably not.

https://warcraft.wiki.gg/wiki/API_C_AddOns.GetAddOnEnableState
Get the state of the first addon and depending on the result,

https://warcraft.wiki.gg/wiki/API_C_AddOns.DisableAllAddOns

https://warcraft.wiki.gg/wiki/API_C_AddOns.EnableAllAddOns

This presumes you don 't have different states for different addons for different characters…

1 Like

You could always get the ACP addon that lets you save different addon sets that you can switch between with a button or via slash command (which you could make into a macro).

https://www.curseforge.com/wow/addons/acp

2 Likes