ItemLinkMacros is an addon which allows you to add item links into your macros simply by Shift-LClicking an item link while the macro window is open.
During my time answering questions at the Blizzard UI&Macros forums, a frequent request is "Linking an item in a macro". For some reason, I assumed the default UI would be incapable of even handling this, so I always advised people how to make a Lua script to do it. After realizing that the default UI allows you to place TradeLinks (i.e. Profession links) in macros, I figured I'd see if I could write an addon to make it work with ItemLinks. ItemLinkMacros is the resultant addon.
The addon is quite simple to use. Here's a step-by-step guide to putting an item link into a macro:
1. Open up the Macro interface (/m)
2. Select a macro to edit
3. Shift-LClick on an item link to insert it into that macro
Because there are cases where you don't want an item link, and you want plain text, ItemLinkMacros automatically adds plain text if your macro contains any of these strings:
New slash command: /addtext
To make adding links to macros easier, I've added the slash command /addtext. As you would expect, it simply inserts the text following it into the macro edit box, including any link contained therein.
This also makes it easy to add in item links to a macro where you also have the string /use, /cast, or /equip.
What configuration is possible?
The addon is set-it-and-forget-it! No configuration necessary nor possible. Enjoy!
Macros are not editable in combat. (This is true in the default UI also).
The character count display in the Macro interface doesn't count the undisplayed hidden characters of a macro. (as seen in screenshot) (This is true also in the case of TradeLinks in the default UI). As a general rule, you cannot add more than 2-3 item links into a macro without it going over the character limit. The API simply chops off any extra characters. Beware that macros with partial item links can disconnect you from the server. Be sure to check your macro (by closing and reopening the window) and delete any partial item links.
This addon is untested with any macro addons such as Macaroon. ItemLinkMacros functions by completely replacing the Blizzard-provided function which handles link clicks; if another addon relies on replacing or hooking this function, there may be an addon conflict. (If you notice a conflict, please let me know)
Possible Future Features
Modify/replace Blizzard's code which counts the number of characters in a macro
Want to help?
I'm always interested in Bug Reports and Feature Requests. I try to keep this addon lightweight and simple, so in some cases I may turn down extensive requests.
I'm also a recent college graduate paying off my loans from undergraduate+graduate school. Any donations you feel like sending my way would be gratefully appreciated and allow me more time to work on addons
Version 1.1 released
In this version:
Updated to work with patch 3.3.5 (build 12213) - Now fully works again
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.
*Clicking the donate button above will take you to PayPal.com
*Clicking the donate button above will take you to Pledgie.com