Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(2 Kb)
Download
Updated: 06-26-10 02:27 AM
Pictures
File Info
Updated:06-26-10 02:27 AM
Created:09-02-09 06:13 PM
Downloads:2,134
Favorites:18
MD5:
ItemLinkMacros
Version: 1.1
by: Nafe [More]
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.


Usage
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:
/use
/cast
/equip

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!


Known Quirks/Issues
  • 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:
  • Patch-compatibility Fixes:
    • Updated to work with patch 3.3.5 (build 12213) - Now fully works again
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Author
Date
1.0
1kB
Nafe
09-02-09 06:13 PM


Post A Reply Comment Options
Unread 11-12-12, 11:15 AM  
Tonyleila
An Onyxian Warder
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 372
File comments: 1378
Uploads: 33
Item Link Macros

This is still working in MoP version 50001
Thanks for the nice addon
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
Tonyleila is offline Report comment to moderator  
Reply With Quote
Unread 06-26-10, 02:28 AM  
Nafe
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 35
Uploads: 13
Version 1.1 released

Version 1.1 released

In this version:
  • Patch-compatibility Fixes:
    • Updated to work with patch 3.3.5 (build 12213) - Now fully works again
Nafe is offline Report comment to moderator  
Reply With Quote
Unread 10-14-09, 06:53 PM  
Santiclause
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 10
Uploads: 5
No, no, no - look at the specific word I quoted.
Santiclause is offline Report comment to moderator  
Reply With Quote
Unread 10-14-09, 10:32 AM  
Nafe
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 35
Uploads: 13
Re: Comment on your coding style:

Originally posted by Santiclause
--UPDATE: seems fine in combat. EditMacro seems to fail silently irregardless of this addon
irregardless
!!!
Yeah I noticed this while I was writing the addon. I wrote on the page (under quirks/issues) the following, but I guess it's not very clear:
Macros are not editable in combat. (This is true in the default UI also)
Any other comments about my style? I'd love to hear =)
Nafe is offline Report comment to moderator  
Reply With Quote
Unread 10-13-09, 08:42 PM  
Santiclause
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 10
Uploads: 5
Comment on your coding style:

--UPDATE: seems fine in combat. EditMacro seems to fail silently irregardless of this addon.
irregardless
!!!
Santiclause is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

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.