Is there any addon that allows you to purchse items in the AH with one click? I know there's one that cancels your auctions, but I haven't seen one that allows you to...say...shift-right-click on an item in the AH and it buys it out.
If there is such an addon, I'd greatly appreciate a post about it!
-- Shift right-click the buyout button
BrowseBuyoutButton:RegisterForClicks("LeftButtonUp", "RightButtonUp")
BrowseBuyoutButton:SetScript('OnClick', function(self, button)
if IsShiftKeyDown() and button == 'RightButton' then
PlaceAuctionBid(AuctionFrame.type, GetSelectedAuctionItem(AuctionFrame.type), AuctionFrame.buyoutPrice)
else
StaticPopup_Show("BUYOUT_AUCTION")
end
self:Disable()
end)
-- Shift right-click the item's line to buyout the item
local f, buyoutPrice, index
for i = 1, 8 do
f = _G["BrowseButton"..i]
if f then
f:RegisterForClicks("LeftButtonUp", "RightButtonUp")
f.o_script = f:GetScript("OnClick")
f:SetScript("OnClick", function(self, button)
if button == "RightButton" and IsShiftKeyDown() then
index = self:GetID() + FauxScrollFrame_GetOffset(BrowseScrollFrame)
_, _, _, _, _, _, _, _, buyoutPrice = GetAuctionItemInfo("list", index)
PlaceAuctionBid("list", index, buyoutPrice)
elseif f.o_script then
f:o_script(button)
end
end)
end
end
I'd kinda like this AddOn if it worked. Sadly this one does not work for me. From what I am reading I guess its meant to place the Buyoutprice if Shift is pressed and the right mousebutton is used on the Buyoutbutton. Sadly it seems to me the button does not recognize this event. So basically it does not work.
Would it be possible to verify and fix the code + maybe change it to bind the event on clicking the item itself? This way you would be alot faster.
I have tested my code (finally) and have confirmed that you need to include the line, BrowseBuyoutButton:RegisterForClicks("LeftButtonUp", "RightButtonUp"), that Xinhuan suggested. I have edited my post to reflect the change.
As for making it work on the line itself, that would require a lot more thinking on my part and it's too late in the evening for thinking. :)
I to would like click buyout on line per line item. I buy a lot of ore for prospecting sometimes over 100 stacks and selecting the item, clicking buyout and then clicking the confirm button gets rather tedious, just being able to shift right click on an item to buyout would be awesome.
I to would like click buyout on line per line item. I buy a lot of ore for prospecting sometimes over 100 stacks and selecting the item, clicking buyout and then clicking the confirm button gets rather tedious, just being able to shift right click on an item to buyout would be awesome.
He wants to shift-click on the actual item row itself to buyout. Not require 2 clicks as in all the solutions suggested above - one to select the item, then another to press the macro or buyout button.
local f, o_script
for i = 1, 8 do
f = _G["BrowseButton"..i]
if f then
f:RegisterForClicks("LeftButtonUp", "RightButtonUp")
o_script = f:GetScript("OnClick")
f:SetScript("OnClick", function(self, button)
if button == "RightButton" and IsShiftKeyDown() then
BrowseButton_OnClick(self:GetParent());
PlaceAuctionBid(AuctionFrame.type, GetSelectedAuctionItem(AuctionFrame.type), AuctionFrame.buyoutPrice)
elseif o_script then
o_script(button)
end
end)
end
end
This unfortunately doesn't work. The shift right click on buyout button works but not on the item itself. I disabled all other mods to see if there was a conflict but it still doesn't buyout on right click of the line. Nothing showing in BugSack either.
This unfortunately doesn't work. The shift right click on buyout button works but not on the item itself. I disabled all other mods to see if there was a conflict but it still doesn't buyout on right click of the line. Nothing showing in BugSack either.
Thanks for any help.
Cheers!
Hmmm... Shift right-clicking on the Buyout button doesn't seem to work anymore either.
Even manually calling PlaceAuctionBid("list", 1, 12) (which was 1 Linen Cloth Bandage with a 12 C BO) didn't work. Even clicking the buyout button the "right" way didn't work.
Could be a conflict in my addons, I will investigate later as it's way past my bed time and my brain has shut off. lol
local f, buyoutPrice, index
for i = 1, 8 do
f = _G["BrowseButton"..i]
if f then
f:RegisterForClicks("LeftButtonUp", "RightButtonUp")
f.o_script = f:GetScript("OnClick")
f:SetScript("OnClick", function(self, button)
if button == "RightButton" and IsShiftKeyDown() then
index = self:GetID() + FauxScrollFrame_GetOffset(BrowseScrollFrame)
_, _, _, _, _, _, _, _, buyoutPrice = GetAuctionItemInfo("list", index)
PlaceAuctionBid("list", index, buyoutPrice)
elseif f.o_script then
f:o_script(button)
end
end)
end
end
If there is such an addon, I'd greatly appreciate a post about it!
Thanks in advance.
V
OneClickBuyOut.toc
OneClickBuyOut.lua
Updated: May 14, 2008 at 14:14 MST
I'd kinda like this AddOn if it worked. Sadly this one does not work for me. From what I am reading I guess its meant to place the Buyoutprice if Shift is pressed and the right mousebutton is used on the Buyoutbutton. Sadly it seems to me the button does not recognize this event. So basically it does not work.
Would it be possible to verify and fix the code + maybe change it to bind the event on clicking the item itself? This way you would be alot faster.
BrowseBuyoutButton:RegisterForClicks("LeftButtonUp", "RightButtonUp")
As for making it work on the line itself, that would require a lot more thinking on my part and it's too late in the evening for thinking. :)
Cheers!
Use what they gave above, and you can. :P
I will add this to my post above.
Thank you to others as well for your suggestions I shall stick a few dollars in the donate box.
Cheers!
Thanks for any help.
Cheers!
Thanks zarevak :)
Even manually calling PlaceAuctionBid("list", 1, 12) (which was 1 Linen Cloth Bandage with a 12 C BO) didn't work. Even clicking the buyout button the "right" way didn't work.
Could be a conflict in my addons, I will investigate later as it's way past my bed time and my brain has shut off. lol
Thank you so much for the time you spent on this.
Auctionshousewindow is lagging with this addon :(