Код:
/run for i=1,4 do if _G["GroupLootFrame"..i]:IsShown() then _G["GroupLootFrame"..i.."DisenchantButton"]:Click() end end