That's exactly what I was looking for! Thanks a bunch ^.^
I do get one error though, it seems only left and right button are passed, for example in the script below...
Lua Code:
for container = 1, 5 do
for item = 1, 36 do
_G["ContainerFrame"..container.."Item"..item]:HookScript("OnClick", function(self, button)
print(button)
if IsShiftKeyDown() and button == "MiddleButton" then
print(GetItemInfo(GetContainerItemID(self:GetParent():GetID(), self:GetID())))
end
end)
end
end
Only left and right clicks will print anything, this is not a huge deal as I can easily switch the keybinds though, just curious why that is.