Category: Miscellaneous
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Nafe's Portal Bug Reports Feature Requests
Author:
Version:
1.0
Date:
09-02-2009 07:13 PM
Size:
1.49 Kb
Downloads:
285
Favorites:
9
MD5:
Pictures
Click to enlarge
Example Macro Usage
ItemLinkMacros
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:
Quote:
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:
Quote:
/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 college student paying my way through graduate school. Any donations you feel like sending my way would be gratefully appreciated and allow me more time to work on addons

  Optional Files - ItemLinkMacros
Sorry, there are currently no optional files available.
  Comments - ItemLinkMacros
Post A Reply Comment Options
Old 10-14-2009, 07:53 PM  
Santiclause
A Murloc Raider
Interface Author - Click to view interfaces

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   Edit/Delete Message Reply With Quote
Old 10-14-2009, 11:32 AM  
Nafe
A Deviate Faerie Dragon
Interface Author - Click to view interfaces

Forum posts: 16
File comments: 23
Uploads: 9
Re: Comment on your coding style:

Quote:
Originally posted by Santiclause
Quote:
--UPDATE: seems fine in combat. EditMacro seems to fail silently irregardless of this addon
Quote:
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:
Quote:
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   Edit/Delete Message Reply With Quote
Old 10-13-2009, 09:42 PM  
Santiclause
A Murloc Raider
Interface Author - Click to view interfaces

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

Quote:
--UPDATE: seems fine in combat. EditMacro seems to fail silently irregardless of this addon.
Quote:
irregardless
!!!
Santiclause is offline Report comment to moderator   Edit/Delete Message 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.




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.