I found a macro similar to this on the WoW forums & I have modified it (changing the Drop Item code to the Use Item code, etc). This macro makes it possible to trade/mail/bank/etc. all of a specified item:
Change the red text to the item you want to specify./run for b=0,4 do for s=0,22 do l=GetContainerItemLink(b,s) if l and l:find("Saronite Ore")then UseContainerItem(b,s) end end end
Another macro I found online that was incredibly useful to me was the "Mail all Greens" macro, which I do believe also works for trades:
Change the "2" (red) based on the following:/run for bag=0,4 do for slot=1,GetContainerNumSlots(bag) do local texture,itemCount,locked,quality=GetContainerItemInfo(bag,slot) if quality==2 then UseContainerItem(bag,slot) end end end
0 - Poor
1 - Common
2 - Uncommon
3 - Rare
4 - Epic
5 - Legendary
6 - Artifact
7 - Heirloom
A macro I searched for thanks to sn00zr (who requested such a macro or addon). This macro, if clicked repeatedly, will take the items/money out of the mail and then delete the empty mail.
/script GetInboxText(1); TakeInboxItem(1); TakeInboxMoney(1); DeleteInboxItem(1);