Download
(2Kb)
Download
Updated: 08-29-17 04:40 AM
Pictures
File Info
Compatibility:
Shadows of Argus (7.3.0)
Updated:08-29-17 04:40 AM
Created:02-03-12 04:23 PM
Downloads:3,452
Favorites:27
MD5:

Linkerize

Version: 11
by: Gello [More]

This is a very small addon to make clickable links paste-able into edit boxes.

Edit boxes currently supported:

  • Macro
  • Chat entry
  • TinyPad (if it exists)
Ordinarily, when you copy/cut a clickable link in WoW, it strips the control codes so when you paste it elsewhere it's no longer clickable. Instead of [Item of Itemness] you get [Item of Itemness].

This addon will add the control codes when you paste a link you've recently copy/cut (or even seen) from one of the supported edit boxes. The upshot is that pasting links will remain clickable.

__ How it works __

Addons have no access to the clipboard or even what modifier keys are hit while an editbox has focus. It really can't tell if you've cut or pasted.

This addon does basically three things:
  • Notes any clickable links when an editbox gains focus or changes.
  • Looks for unclickable links when an editbox changes.
  • If it has the control codes for an unclickable link, it adds them.
This was originally for TinyPad but since that addon wasn't necessary for this function, plus it was trivial to support any editbox, and I really don't want TinyPad to affect the behavior of other parts of the UI, breaking it out into a separate addon seemed to make more sense.

__ Useless trivia about control codes you may already know __

When you see [Item of Itemness] or [Spell of Spellness] or [Anything Clickable] in WoW, it actually contains many characters you don't see, or control characters. The actual link looks something like:
|cff0070dd|Hitem:46349:0:0:0:0:0:0:0:0|h[Chef's Hat]|h|r

Only the bold part is displayed. The rest is hidden. All links, including achievements, quests, spells, etc, have the same format:
|c(color)|H(data)|h[Visible Link]|h|r

Sometimes they can be very long. Here's one for Inscription:
|cffffd000|Htrade:86008:525:525:600000000FFFFFF:A//////////////////////////////////////////////////////////////////////3/f/////f|h[Inscription]|h|r

That's 148 characters for what looks like 13 characters in your macro window. Which explains why you often can't cram multiple professions into a 255-character macro this way. Watch the character count at the bottom of your macro when you're pasting a profession into one to see it in effect.

__ Adding support for other edit boxes __

Post here if you'd like this to support another edit box. It's trivial to add with an edit box name.

If you want you can edit Linkerize.lua and you'll see a place at the top to add another edit box too.

If you're an addon author:
  • You can Linkerize:Register(editBox) at PLAYER_LOGIN or later.
  • Linkerize.lua is in a simple library with version checking so you can copy it to your addon's folder if you want.
  • If you make changes to Linkerize.lua (you're more than welcome to) then increment the version counter so yours is the one actually loads.
  • It's safe to register an editBox multiple times. It will only do it once.
  • I have no delusions that any addon author would actually use this. Just throwing it out there!

08/29/17 011 toc update for 7.3
03/28/17 010 toc update for 7.2
10/24/16 009 toc update for 7.1
07/16/16 008 toc update for 7.0
06/23/15 007 toc update for 6.2
02/24/15 006 toc update for 6.1
10/14/14 005 toc update for 6.0
09/11/13 004 toc update for 5.4
05/21/13 003 toc update for 5.3
08/27/12 002 bug fix
02/03/12 001 initial release
Optional Files (0)


Post A Reply Comment Options
Unread 11-18-18, 04:50 PM  
Shaun Dreclin
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Pasting links into chat edit box doesn't work

I don't know when this broke, but as of 8.0.1, ChatFrame1EditBox:GetMaxLetters() always returns 0. This causes the addon to always say "Not enough room to paste a clickable link." when trying to paste into the chat box.

TinyPadEditBox:GetMaxLetters() still works as expected, so I'm not sure what's wrong with the chat edit box.
Report comment to moderator  
Reply With Quote
Unread 09-05-18, 08:37 AM  
Barleduq
Premium Member
 
Barleduq's Avatar
Premium Member

Forum posts: 135
File comments: 742
Uploads: 0
Does this need an update for BfA?

Or do I just need to keep 'load out of date addons' checked?
Thanks!
-Barleduq
Report comment to moderator  
Reply With Quote
Unread 05-24-13, 09:54 AM  
xXxDSMer
A Kobold Labourer

Forum posts: 1
File comments: 8
Uploads: 0
Originally Posted by Gello
Unless something's not working, any update would be just a .toc change, which I can probably do since it's been nearly a year.

Are there any bugs you're seeing?
As far as in 5.2: other than the links sometimes getting weird (like when i copy pasted a sizeable chunk of my raid loot list from one page to move it to another page of /pad), there hasn't been any issues aside from having to load out of date which I, and probably others, prefer not to do if possible

For 5.3 I don't yet know if it still works as it did for 5.2 because my shoulder was out of commission just about all week (so there wasn't much of anything done on the computer) I'll return here if there is an issue though

Its nice to see this addon's still alive
Report comment to moderator  
Reply With Quote
Unread 05-11-13, 02:20 PM  
Gello
A Molten Giant
AddOn Author - Click to view AddOns

Forum posts: 521
File comments: 582
Uploads: 75
Unless something's not working, any update would be just a .toc change, which I can probably do since it's been nearly a year.

Are there any bugs you're seeing?
Report comment to moderator  
Reply With Quote
Unread 05-11-13, 01:59 PM  
xXxDSMer
A Kobold Labourer

Forum posts: 1
File comments: 8
Uploads: 0
Originally Posted by xXxDSMer
An update to this addon would be very nice. I use it almost daily with /pad.

If this addon's dead, a replacement reference would be great.
bump b/c for some reason me making a helpful reply to another post put that post above this one lol
Report comment to moderator  
Reply With Quote
Unread 05-11-13, 01:58 PM  
xXxDSMer
A Kobold Labourer

Forum posts: 1
File comments: 8
Uploads: 0
Originally Posted by DohNotAgain
Maybe I'm just a newb, but I have never been able to figure out how to copy and paste ANYTHING
out of the chat window, much less a functioning link.
I have not found any key-binds for anything related to it either.

I use Tinypad a lot.
I type everything in manually.
Having working links in my TP text pages is something I really want.

I installed this, but obviously it did nothing since I don't know how to copy from the chat window.

Do I need a secret handshake to get copy/paste to work in the chat window?
You just shiftclick a link, like say from the dungeon journal, while the cursor is in tinypad. Or if someone linked something in chat that you want to put on your pad, you'll have to put the cursor in the chatbox like you're going to send a message, but just shiftclick their link in your text entry line then highlight it with shift+home, and copy with shift+delete then paste in tinypad
Report comment to moderator  
Reply With Quote
Unread 05-11-13, 01:56 PM  
xXxDSMer
A Kobold Labourer

Forum posts: 1
File comments: 8
Uploads: 0
An update to this addon would be very nice. I use it almost daily with /pad.

If this addon's dead, a replacement reference would be great.
Report comment to moderator  
Reply With Quote
Unread 06-13-12, 04:38 PM  
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 758
File comments: 2021
Uploads: 37
Originally Posted by DohNotAgain
Maybe I'm just a newb, but I have never been able to figure out how to copy and paste ANYTHING
out of the chat window, much less a functioning link.
You can copy many links (raid IDs, achievements, spells) by open the macro window and shif click on the link. but you first have to post it in chat. Also its possible to do if you woud post the item and copy the name by using strg+c and than strg+v but i will not copy the item link
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
Report comment to moderator  
Reply With Quote
Unread 06-13-12, 04:29 PM  
DohNotAgain
A Kobold Labourer

Forum posts: 0
File comments: 51
Uploads: 0
Maybe I'm just a newb, but I have never been able to figure out how to copy and paste ANYTHING
out of the chat window, much less a functioning link.
I have not found any key-binds for anything related to it either.

I use Tinypad a lot.
I type everything in manually.
Having working links in my TP text pages is something I really want.

I installed this, but obviously it did nothing since I don't know how to copy from the chat window.

Do I need a secret handshake to get copy/paste to work in the chat window?
Report comment to moderator  
Reply With Quote
Unread 02-03-12, 07:29 PM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1359
File comments: 829
Uploads: 55
Originally Posted by Gello
I have no delusions that any addon author would actually use this. Just throwing it out there!
Don't bet on it

This is a great idea, I've been bothered by the inability to copy paste links long enough.

I think although the scope is a little more limited this could be as ubiquitous for addons working with editboxes as krka's ForAllIndentsAndPurposes immortal addon.
Last edited by Dridzt : 02-04-12 at 11:32 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: