As I'm sure most of you are aware, sometimes when you request to trade with someone it gets bugged, and you can't re-trade udntil you run away from them about 20 yards and get the "Trade Canceled" message. Well, this happens to me a lot, and I find it
very annoying, so I decided to look and see if there was an API call to cancel the trade in progress. Well, it turns out that there is an API call to do this, and it's CancelTrade (Who woulda thought? :P). Now, here's where the workaround/trick/whatever you'd like to refer to it as comes in: simply make a macro with
Code:
/script CancelTrade()
in it, and hotkey the macro. Now any time your trade gets bugged, just hit the macro and wa lah, "Trade Canceled". I hope someone out there is as lazy as me and appreciates this.
Sources:
World of Warcraft API - WoWWiki - Your guide to the World of Warcraft
API CancelTrade - WoWWiki, the Warcraft wiki