I had a working macro for buying items out on the AH, but it stopped working

/run AuctionHouseFrame.ItemBuyFrame.BuyoutFrame.BuyoutButton:Click()
/click StaticPopup1Button1

It throws an error now without any add-ons enabled. Any ideas?

And that error is…?

In the end it boils down to a protected function:

https://warcraft.wiki.gg/wiki/API_C_AuctionHouse.PlaceBid

3 Likes

I figured it would end up being a protected function but the macro was working as recently as a few days ago.

I am sad. I was buying items to disenchant off the AH and clicking the confirm button each time is difficult with my disability. Thanks for the help, Mr. Macro Gurus.

Edit: on the page you linked, I found the following macro that lets me buy it with a button press. Thank you!

/run if not B then local f=CreateFrame("Button","B",nil,"SecureActionButtonTemplate")f:SetAttribute("type","click")f:SetAttribute("clickbutton",AuctionHouseFrame.ItemBuyFrame.BuyoutFrame.BuyoutButton)end
/click B LeftButton 1
/click StaticPopup1Button1
3 Likes