WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   Auction house buttons /click macros (https://www.wowinterface.com/forums/showthread.php?t=57837)

Phewx2 02-25-20 07:57 AM

Auction house buttons /click macros
 
Hey

I used to create auctions with a few little macros
macro a:
Quote:

/click Atr_SellControls_Tex
this clicked the empty item slot in the auction house and placed the item I had sticking to my cursor in it
macro b:
Quote:

/click Atr_CreateAuctionButton
this clicked the create auction button

and macro c:
Code:

/click AuctionsCancelAuctionButton
/click StaticPopup1Button1

to cancel auctions instantly without a prompt

(to clarify, this way I could click an item, tap 1 for macro a and 2 for macro b and viola I created an auction without moving around with my mouse even a centimeter without the need for any addons)

I found the interface objects to click via /fstack back then but since they reworked the auction house even the buttons I find with fstack do not work with /click

Code:

/click AuctionHouseFrame.ItemSellFrame.PostButton
this for example does not work
tried many other things fstack showed me but none of them work

Does anyone know more or use similar macros?

Thanks

Kanegasi 02-25-20 09:29 AM

For the first one, simply right clicking a sellable item in your bags places the item in the sell frame, even if you're not on the sell frame.

For the posting and canceling, I have messed around with the new code to make custom pricing buttons. I'll see what I can find later when I'm able.

Ketho 02-25-20 05:12 PM

For posting an item/commodity
Code:

/run AuctionHouseFrame.ItemSellFrame.PostButton:Click()
/run AuctionHouseFrame.CommoditiesSellFrame.PostButton:Click()

For canceling
Code:

/run AuctionHouseFrame.AuctionsFrame.CancelAuctionButton:Click()
/click StaticPopup1Button1


Phewx2 02-27-20 08:54 AM

Quote:

Originally Posted by Ketho (Post 335212)
For posting an item/commodity
Code:

/run AuctionHouseFrame.ItemSellFrame.PostButton:Click()
/run AuctionHouseFrame.CommoditiesSellFrame.PostButton:Click()

For canceling
Code:

/run AuctionHouseFrame.AuctionsFrame.CancelAuctionButton:Click()
/click StaticPopup1Button1


Thank you very much

Phewx2 03-27-20 06:05 PM

Well.......

I now have a funny bug when posting items with this macro
The auction house posts the item and never stops reloading again and I have to reload my UI

I even tried without any addons but when I post an item with the macro the auction house breaks
posting items without the macro works fine

Ketho 03-29-20 06:18 PM

Quote:

Originally Posted by Phewx2 (Post 335435)
The auction house posts the item and never stops reloading again and I have to reload my UI


I can confirm, but not sure what is causing this. Whether it's events not firing, or some weird kind of taint
e.g. for non-commodity items: https://github.com/Gethe/wow-ui-sour...mList.lua#L360
Lua Code:
  1. -- returns 0 when bugged
  2. /dump C_AuctionHouse.GetNumItemSearchResults(AuctionHouseFrame.ItemSellFrame.listDisplayedItemKey)
  3.  
  4. -- is ItemListState.ResultsPending (3) when bugged
  5. /dump AuctionHouseFrame.ItemSellList.state
Do you remember if the click macros ever worked before? Then something must have changed in a recent build

Phewx2 03-30-20 04:01 AM

Quote:

Originally Posted by Ketho (Post 335465)
Do you remember if the click macros ever worked before? Then something must have changed in a recent build

Yes, they worked fine. I was posting auctions just fine for a month.
The macro/auction house broke just a few days ago, probably on the weekly restart.

Just for the protocol: I'm from Germany and our weekly reset is on wednesday

Phewx2 04-21-20 10:48 AM

Still no solution for the problem? :/

vbezhenar 10-30-20 10:51 PM

I have the same problem. What's more curious is that some people report this macro working and for some people this macro works on some characters and does not work on another characters.

Ketho 11-06-20 06:41 PM

After reading this post by Gello I think I have a slightly better understanding what's happening, but not why
https://us.forums.blizzard.com/en/wo...-button/704071
  • C_AuctionHouse.PostItem() works fine when called from a macro, script or addon.

  • But /clicking the "Create Auction" button with a script/macro bricks the AH. (However it still works fine if you create an auction once manually and afterwards use the macro/script)

  • The workaround is to use a proxy button from an addon or a SecureActionButtonTemplate button in a macro script.
    Lua Code:
    1. local btn = CreateFrame("Button", "ProxyAHButton")
    2. btn:SetScript("OnClick", function(self, button)
    3.     AuctionHouseFrame.ItemSellFrame:PostItem()
    4.     AuctionHouseFrame.CommoditiesSellFrame:PostItem()
    5. end)
    6.  
    7. -- /click ProxyAHButton

    The macro script version of this for some reason still bricks the AH :(
    Code:

    /run if not ProxyAHButton then local btn = CreateFrame("Button", "ProxyAHButton") btn:SetScript("OnClick", function(self, button) AuctionHouseFrame.ItemSellFrame:PostItem() AuctionHouseFrame.CommoditiesSellFrame:PostItem() end) end
    /click ProxyAHButton


    While the SecureActionButtonTemplate one by Gello works fine (but is difficult to support both normal and commodity items in the same macro)
    Code:

    /run if not ProxyAHItem then local f = CreateFrame("Button", "ProxyAHItem", nil, "SecureActionButtonTemplate") f:SetAttribute("type", "click") f:SetAttribute("clickbutton", AuctionHouseFrame.ItemSellFrame.PostButton) end
    /click ProxyAHItem

    Code:

    /run if not ProxyAHCom then local f = CreateFrame("Button", "ProxyAHCom", nil, "SecureActionButtonTemplate") f:SetAttribute("type", "click") f:SetAttribute("clickbutton", AuctionHouseFrame.CommoditiesSellFrame.PostButton) end
    /click ProxyAHCom


There coincidentally also is https://www.curseforge.com/wow/addons/magic-button/ from the Auctionator author which is really neat

-- Update: 2020.11.29
By request, the buy version. The commodity one split into 2 macros because it's protected and doesn't fit within <255 chars

  • Non-commodity
    Code:

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

  • Commodity
    Code:

    /run if not ProxyAHBuy then local f = CreateFrame("Button", "ProxyAHBuy", nil, "SecureActionButtonTemplate") f:SetAttribute("type", "click") f:SetAttribute("clickbutton", AuctionHouseFrame.CommoditiesBuyFrame.BuyDisplay.BuyButton) end
    /click ProxyAHBuy

    Code:

    /run AuctionHouseFrame.BuyDialog.BuyNowButton:Click()


All times are GMT -6. The time now is 02:09 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI