Try this macro and substitute bag and slot with some numbers that has an item. Guess you could also loop a bag or even use a mouseover function and build an array.
Anyways, couldnt remember whether to paste an itemLink or an itemString, but I think it's the String we want, not sitting at wow atm and all.
Code:
/script local myLink=GetContainerItemLink(bag,slot) local found, _, itemString = string.find(myLink, "^|c%x+|H(.+)|h%[.+%]") SendChatMessage("Selling: " .. itemString);
bagID are :
* 0 for the backpack
* 1 to 4 for the bags on the character (numbered right to left)
* -2 for the keyring
While the bank is opened:
* -1 for the bank content
* 5 to 11 for bank bags (numbered left to right, was 5-10 prior to 2.0)
slot
Integer - slot inside the bag (top left slot is 1, slot to the right of it is 2).
Code:
/Script local myLink=GetContainerItemLink(bag,slot) local found, _, itemString = string.find(myLink, "^|c%x+|H(.+)|h%[.+%]") SendChatMessage("Selling: " .. itemString, "CHANNEL", nil, GetChannelName("Trade"));
Just showing how you could change it from the say channel to the trade channel.
Hope it gave you some ideas anyway.