Quantcast WoWInterface - View Single Post - need macro for clicking random battlegrounds in pvp pane
View Single Post
01-17-16, 06:57 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I'm pretty sure that joining a battleground queue requires a hardware event, so an addon can't do it for you. You have to physically press a key or click a button.

If you just want a macro that you can activate with a hotkey instead of moving the mouse to click, move the mouse over the button (just this once) that you want to "click" and type this command:

Code:
/fstack
This will open a special tooltip listing all of the UI objects under the cursor. Find the name of the button (it should be fairly obvious from its name) and then put that in a macro:

Code:
/click RandomBattlegroundQueueJoinButton
Then you can put the macro on an action button and use it with a hotkey, or you can use an addon like PhanxBind to bind a key directly to the macro without needing to have it on an action button.
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote