Auctioneer/Saving Time With Macros

From Norganna's AddOns

Jump to: navigation, search


Contents

Saving Time using Macros with Auctioneer

This guide will be most valuable to those who have some experience using Auctioneer and are very familiar with its user interface and terms. It also assumes you have a basic understanding of the macro system used in World of Warcraft, such as how to create them, assigning names and buttons, and how to give them key bindings.

Why use Macros with Auctioneer?

As you become experienced using Auctioneer, or simply use the Auction House a great deal, you may find that certain tasks become quite repetitive and slow to perform. Using some basic macros, the time needed for accomplishing these tasks can be greatly reduced. Less time spent using the Auction House means more time for questing, raiding, or PvP in World of Warcraft, or whatever else you do in life.

Here are a few examples of things that can be automated to the point of using only one click of a button or key with Auctioneer (and other AddOns):

  • Purchase, bid or cancel individual auction items and skip all confirmation dialogs. Great for buying or canceling in bulk (just use caution!).
  • Cancel all of your current auctions, or just those of a particular item.
  • Purchase and confirm the buyout of auctions you find through the SearchUI.
  • Select the Yes button when auto-disenchanting items.

While this guide focuses mainly on usage with Auctioneer, you will find these simple macros can be extended or modified to other parts of the interface as well, and used with other AddOns or even the Blizzard interface.

Getting Started

Most of the macros in this guide work by using the /click macro command. It simply performs a mouse click you would normally do with the cursor. Others work with the /script or /run macro commands.

In Auctioneer, many of the buttons, tabs, check boxes, menu items and other screen elements that allow user interaction use frames, each with a distinctive name. If you know the name of a given frame, you can use the /click command to interact with it. You can then combine several commands in a row to automate things with Auctioneer. For example, the name of the frame for the Reset button on the Auctioneer Browse window is BrowseResetButton. So how do you find the hidden names of these frames? One such method is to use another macro, like this one Norganna provided to us. To use it, bind this macro to a key, place the cursor over the frame you want to know, then press the key binding. The name of the frame will then appear in the chat window. You must make a key binding for this to work easily.

/run DEFAULT_CHAT_FRAME:AddMessage(GetMouseFocus():GetName())

There are also AddOns for World of Warcraft that will show you frame names more easily. One you can try is MoveIt and another is MoveAnything.

Auctioneer Macro Examples

As of WoW 4.x, you are required to perform a hardware event when posting each stack size of an item. There is no "legal" way around this requirement, but you can create a macro and then keybind it.

/click AuctioneerPostPromptYes 

This macro will let you bypass the Accept/Cancel confirmation dialog when buying out an item at auction from the Browse window. Simply bind it to a key, use the cursor to select the item, then press the key. Be very careful when using this one. Note: The Auctioneer Suite's EasyBuyout feature provides this functionality, too. Click Configure>Utils>EasyBuyout to enter configuration.

/click BrowseBuyoutButton
/click StaticPopup1Button1


Similar to above, but this time for simply bidding on items. Bind to a key for faster bidding. Note: The Auctioneer Suite's EasyBid feature provides this functionality, too. Click Configure>Utils>EasyBuyout to enter configuration.

/click BrowseBidButton

This one allows you to cancel individual auctions quickly, skipping the "You will lose your initial deposit..." warning completely. Just bind this macro to a key then select the item in the Auctions window to use it. Note: Auctioneer Suite's EasyCancel feature provides this functionality, too. Click Configure>Utils>EasyBuyout to enter configuration.

/click AuctionsCancelAuctionButton
/click StaticPopup1Button1


This macro from MentalPower cancels all auctions (the line is wrapped to enhance readability, remove the newlines when you use this):

/script local o="owner"for i=1,GetNumAuctionItems(o)do 
local _,_,_,_,_,_,_,_,b=GetAuctionItemInfo(o,i)local 
t=GetAuctionItemTimeLeft(o,i)if(t==2)and(b==0)then CancelAuction(i)end end

This modification cancels all auctions having the quote-enclosed name:

/script
local o="owner" p=GetNumAuctionItems(o)
n="Large Prismatic Shard"
for i=1,p
do
    local b,_,_,_,_,_,_,_,_=GetAuctionItemInfo(o,i)
    if(b==n)then
        CancelAuction(i)
    end
end

The same macro, with spaces and newlines stripped:

/script local o="owner" p=GetNumAuctionItems(o) n="Large Prismatic Shard" for i=1,p do local
b,_,_,_,_,_,_,_,_=GetAuctionItemInfo(o,i) if(b==n)then CancelAuction(i) end end

This macro will cancel all auctions (a) that have not been sold, (b) that have no bids, and (c) that have less than 12hrs left:

/script
local o="owner" p=GetNumAuctionItems(o) i=p
while (i>0) do
  local _,_,c,_,_,_,_,_,_,b,_,_=GetAuctionItemInfo(o,i) t=GetAuctionItemTimeLeft(o,i)
  if((c>0)and(b==0)and(t<4))then
    CancelAuction(i)
  end
  i=i-1
end

SearchUI Macro Examples

To click the Purchase button on the SearchUI screen to add the selected item to the purchase queue:

/run if (AucAdvanced.Modules.Util.SearchUI.Private.gui.frame.purchase:IsVisible()) 
     then AucAdvanced.Modules.Util.SearchUI.Private.gui.frame.purchase:Click() end

To click the Yes button on the purchase confirmation dialog:

/run if (AucAdvanced.Buy.Private.Prompt:IsVisible()) then AucAdvanced.Buy.Private.Prompt.Yes:Click() end

Auctioneer-friendly AddOn Macro Examples

These are macros for AddOns which are not part of Auctioneer, but can be of great help in using Auctioneer.

This macro is for BulkMail2Inbox, an AddOn which can automate mail delivery and retrieval: For the Take All button when the mailbox is open:

/click BMI_TakeAllButton

This macro is for Postal, another AddOn to automate mail sending and retrieval. It opens all mail on only the page you are viewing, it automates checking the boxes and clicking the Open button:

/click PostalInboxCB1
/click PostalInboxCB2
/click PostalInboxCB3
/click PostalInboxCB4
/click PostalInboxCB5
/click PostalInboxCB6
/click PostalInboxCB7
/click PostalSelectOpenButton

Enchantrix Macros

How to make a bind a key to macro the Auto Disenchant "Yes" button:

The most simple option:

/click AutoDEPromptYes

Slightly more complex / or one-time use option:

copy and paste the following line into wow chat screen, hit enter:

/run SetBindingClick("replace_with_key", "AutoDEPromptYes")
  • Don't forget to replace the replace_with_key with the exact key you want to activate the DE, this example used "MOUSEWHEELUP" but you can use anything you like, Nine used, "NUMPADDECIMAL"

A more permanent solution:

Add a new in-game macro containing:

/run SetBindingClick("MOUSEWHEELUP","AutoDEPromptYes")

Then drag the new macro to any hot bar, and click it when you first log in. If you use Bongos or another UI mod, you should have some extra space so that you could add two extra macro buttons to your hot bars; one to bind the yes key to wheel up and another to rebind your "usual" up mouse wheel action, such as zoom-in, et cetera.

The following should toggle Auto-Disenchant/Milling/Prospecting:

/script Enchantrix.Settings.SetSetting('AutoDisenchantEnable', not Enchantrix.Settings.GetSetting('AutoDisenchantEnable'))


Part of the Enchantrix section condensed from a how-to written by Tig with thanks to Nine for the knowledge to create the macro.

Personal tools