View Single Post
02-20-14, 01:46 PM   #3
Spawnova
A Warpwood Thunder Caller
 
Spawnova's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2012
Posts: 96
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:
  1. for container = 1, 5 do
  2.         for item = 1, 36 do
  3.             _G["ContainerFrame"..container.."Item"..item]:HookScript("OnClick", function(self, button)
  4.                 print(button)
  5.                 if IsShiftKeyDown() and button == "MiddleButton" then
  6.                     print(GetItemInfo(GetContainerItemID(self:GetParent():GetID(), self:GetID())))
  7.                 end
  8.             end)
  9.         end
  10.     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.
  Reply With Quote