Download
(2 Kb)
Download
Updated: 09-11-13 10:00 AM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:09-11-13 10:00 AM
Created:02-03-12 04:23 PM
Downloads:1,458
Favorites:22
MD5:
5.4
Linkerize
Version: 4
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!
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Author
Date
3
2kB
Gello
05-21-13 11:03 AM
2
2kB
Gello
08-27-12 08:44 PM
1
1kB
Gello
02-03-12 04:23 PM


Post A Reply Comment Options
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
xXxDSMer is offline Report comment to moderator  
Reply With Quote
Unread 05-11-13, 02:20 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 435
File comments: 319
Uploads: 92
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?
Gello is online now 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
xXxDSMer is offline 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
xXxDSMer is offline 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.
xXxDSMer is offline Report comment to moderator  
Reply With Quote
Unread 06-13-12, 04:38 PM  
Tonyleila
A Frostmaul Preserver
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 287
File comments: 1243
Uploads: 31
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
__________________
Tonyleila is offline Report comment to moderator  
Reply With Quote
Unread 06-13-12, 04:29 PM  
DohNotAgain
A Kobold Labourer

Forum posts: 0
File comments: 34
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?
DohNotAgain is offline 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: 1190
File comments: 784
Uploads: 82
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.
Dridzt is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: