Macro:Toggle Autoloot
From Dual-Boxing Wiki
Falkor provided this macro which provides an autoloot On/Off button with an icon that changes colour when its on and off.
- Blue = Off
- Green = On
/run m=GameTooltipTextLeft1:GetText();SetAutoLootDefault(not GetAutoLootDefault());
o=GetAutoLootDefault();ChatFrame1:AddMessage("AL: "..(o and "ON."or"OFF."));
for i=0,36 do n,x,b,l=GetMacroInfo(i);if(m==n)then EditMacro(i,n,o and 340 or 323,b,l,_);end end
Note This should be entered without the line breaks which are included for readability
