Copy the above text to your clipboard. If you enter a pet battle that you don't want to finish, hit RETURN then CTRL-V then RETURN. No need to click the "Forfeit" button, and no confirmation box appears. Thanks goes to Ro from BNET forums.

Thanks for this, I've been looking something similar to reduce the excess clicking. Would be nice to get this in macro but first I need to look is there even a way to use macros due to the pet battle UI.

- Taking your candles since 2005

Everything you need to know about WoD followers can be found in my Warlords of Draenor Follower Guide: http://www.wowhead.com/guide=2533

Ryazan wrote:Thanks for this, I've been looking something similar to reduce the excess clicking. Would be nice to get this in macro but first I need to look is there even a way to use macros due to the pet battle UI.

Just tested this in game and it works to paste it into a macro and keybind the macro.

Ryazan wrote:Thanks for this, I've been looking something similar to reduce the excess clicking. Would be nice to get this in macro but first I need to look is there even a way to use macros due to the pet battle UI.

Just tested this in game and it works to paste it into a macro and keybind the macro.

Awesome, things are working out smoothly today despite it's Monday.

- Taking your candles since 2005

Everything you need to know about WoD followers can be found in my Warlords of Draenor Follower Guide: http://www.wowhead.com/guide=2533

After seeing this, I thought that if there's a command to forfeit then there must be a command for skipping your turn too. I digged the API a bit and well well, here is a macro which can be binded for skipping a turn in battle:

/run C_PetBattles.SkipTurn()

And to kick this up a notch, there is also a API command to directly swap certain pet to the battle (currently behind key 4 but then you need to select the pet manually with mouse). So if you create proper macros for these and bind them, you don't ever need to use mouse while battling.

/run C_PetBattles.ChangePet(i)

where i is 1, 2 or 3 meaning the respective pet slot in your pet journal.

-----

Ok, sorry, but I'm not done yet. So with all the three macros above you would need to make several new macros (total of 5) and if you are like me, you are getting low on free macro slots. Thus I'll give you two macros which combine the functionality from all the macros above. So the first one:

/run if ( IsShiftKeyDown() ) then C_PetBattles.ForfeitGame() else C_PetBattles.SkipTurn() end

And what does that macro do? Well, if you press the key binded for it, it will pass your turn but if you press it while shift pressed down, it will forfeit the whole game. Onto the second:

This is pretty straight-forward too: if you press your macro, it will swap in pet 1 but if you press shift while at it, it will swap pet 2 aaaaaand finally if pressed with alt down it will swap in pet 3.

If you want to use control instead, you can use IsControlKeyDown() in the macros above instead.

Enjoy these, I'm off to play around a bit with them

- Taking your candles since 2005

Everything you need to know about WoD followers can be found in my Warlords of Draenor Follower Guide: http://www.wowhead.com/guide=2533

Brought to you by Simca, the guy(?) that brought us the math on pet breeds in the first place. This addon keybinds stuff you can't normally keybind in the pet battle UI, like picking pets for swaps, passing, and instantly forfeiting. Also includes easy instructions on how to change the keybinds to your liking.

Lets me pet battle without a mouse, and for that I'm super grateful he wrote it.

I hate to sound stupid, but how do I use the key I bind this to when the pet battle UI is up?

Example: I keybind this to say <shift+9> and hit the shift key plus the number 9 and I get nothing.

edit:Nevermind, I just installed the 'Battle Pet Binds' add-on, Go to Menu>Interface>AddOns>Battle Pet BindsClick on any of the red bars, then hit what ever key you want to use.I chose to make 6 my forfeit button, and there is a check box at the bottom, so if you want to get the confirmation dialogue before you forfeit so you don't accidentally forfeit, you have to hit 6 (for me) again to complete the forfeit. If you just want to forfeit, don't check the box at the bottom.

I've been using Battle Pet Binds as well, so for anyone who wants to go with the addon route that really is a super easy way to bind all the pet battle UI functions to keyboard. I don't know why the default pet battle UI isn't set up this way... it seems counter intuitive to have some things bound to keys and have a bunch of others (i.e. forfeit) require clicking.