Quantcast
Download
(12 Kb)
Download
Updated: 02/16/17 01:54 PM
Pictures
File Info
Compatibility:
Homestead (2.7)
Updated:02/16/17 01:54 PM
Created:06/03/14 09:05 AM
Monthly downloads:619
Total downloads:20,426
Favorites:56
MD5:
Chat2Clipboard  Popular! (More than 5000 hits)
Version: 1.11
by: sirinsidiator, Garkin
This simple addon adds a small button before each chat message that opens a textbox and allows you to copy the message to the clipboard by pressing ctrl+c.
Left click shows the popup which contains the message, right click shows a settings menu which let's you decide which parts of the message should be removed or replaced with plain text (powered by Garkin).
*NEW* You can also shift+click on the button and it will ask to open an external link for google translate.

In addition there is a slash command "/m2c" which allows you to copy text from the control you are currently pointing your mouse at. This does not work with every text, but a lot of things can be copied. There is also special support for books and mails to copy them completely.
version 1.11
  • updated to latest api version
  • added "send to google translate" feature

version 1.10
  • removed compatibility code
  • increased character limit to 10000
  • added /m2c command to copy (almost) any text

version 1.9
  • updated to latest api version
  • small cosmetic improvement

version 1.8
  • updated to latest api version
  • brought back the clickable copy icon thanks to a new trick
  • updated LibCustomMenu to r4.1

version 1.7.1
  • updated to latest api version

version 1.7
  • updated to latest api version
  • added LibCustomMenu to prevent potential issues with menu entries
  • replaced copy icon with a simple 'c' because the trick I was using to make clickable icons does not work anymore in the new update

version 1.6
  • updated to latest api version
  • fixed potential error when chat message is nil

version 1.5
  • integrated Garkin's improved link substitution and settings
  • these changes also allow you to copy system and debug messages

version 1.4.1
  • fixed messages longer than 100 characters getting truncated

version 1.4
  • updated to latest api version
  • changed addon functionality to show a textbox after CopyAllTextToClipboard was made private in update 5

version 1.3
  • updated to latest api version
  • fixed compatiblity issues with pChat

version 1.2
  • updated to latest api version
  • updated how links are replaced in text only mode

version 1.1
  • updated to latest api version
  • added required add-on terms to manifest file
  • added a nice alert message instead of the simple chat output when a message is copied
Optional Files (0)


Archived Files (13)
File Name
Version
Size
Uploader
Date
1.10
12kB
sirinsidiator
06/26/16 12:15 PM
1.9
12kB
sirinsidiator
04/26/16 04:02 PM
1.8
12kB
sirinsidiator
03/07/16 09:11 AM
1.7.1
11kB
sirinsidiator
11/02/15 07:16 AM
1.7
11kB
sirinsidiator
09/13/15 12:21 PM
1.6
5kB
sirinsidiator
03/06/15 02:47 PM
1.5
5kB
sirinsidiator
12/13/14 09:16 AM
1.4.1
4kB
sirinsidiator
11/09/14 09:44 AM
1.4
4kB
sirinsidiator
11/04/14 01:49 PM
1.3
4kB
sirinsidiator
09/16/14 01:07 PM
1.2
3kB
sirinsidiator
08/06/14 09:28 AM
1.1
3kB
sirinsidiator
06/25/14 11:05 AM
1.0
3kB
sirinsidiator
06/03/14 09:05 AM


Post A Reply Comment Options
Unread 06/26/14, 10:27 AM  
Augmenti-DeMontia

Forum posts: 25
File comments: 214
Uploads: 0
This is an amazing mod, thanks for your work on this!

It allows you to copy and paste from the chat window!

At it's simplest form it allows you to copy and paste web-links from the chat window with ease. In it's most complex usages it can be used to chat in other languages.

It's an amazing help especially if you are trying to communicate with friends who speak a foreign language. When playing on the EU server (as currently when the US server is down) I can copy and paste a message translate it in Google, then type a message back. Or be able to understand what kind of guild that was who just posted about looking for new members, i.e. Trade or Crafting or PvE or PvP.
Report comment to moderator  
Reply With Quote
Unread 06/26/14, 04:41 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1270
File comments: 791
Uploads: 34
Originally Posted by Augmenti-DeMontia
This is an amazing mod, thanks for your work on this!

It allows you to copy and paste from the chat window!

At it's simplest form it allows you to copy and paste web-links from the chat window with ease. In it's most complex usages it can be used to chat in other languages.

It's an amazing help especially if you are trying to communicate with friends who speak a foreign language. When playing on the EU server (as currently when the US server is down) I can copy and paste a message translate it in Google, then type a message back. Or be able to understand what kind of guild that was who just posted about looking for new members, i.e. Trade or Crafting or PvE or PvP.
Thank you for your kind words
It is also interesting to hear about how you use this addon. Haven't thought of that myself.
I use it mainly for debugging chat links as it allows me to copy them and look at their code in a text editor.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 08/12/14, 09:04 AM  
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 290
File comments: 772
Uploads: 7
Very nice addon sirinsidiator. This woud be even more awsome if you coud add some kind of popup window that allows us selecting the text (more then one line) we want to copy.
__________________
My Addons @ WoWInterface
Last edited by Tonyleila : 08/12/14 at 09:04 AM.
Report comment to moderator  
Reply With Quote
Unread 08/27/14, 08:29 AM  
bashfulbrute

Forum posts: 0
File comments: 3
Uploads: 0
If this method could be incorporated into TIM 4, as in a button that can copy an entire conversation to be pasted elsewhere that would be kind of epic!
Report comment to moderator  
Reply With Quote
Unread 11/03/14, 12:42 PM  
PaulScelus
 
PaulScelus's Avatar

Forum posts: 0
File comments: 17
Uploads: 0
It seems Update 5 has officially killed this add-on with the privatising of "CopyAllTextToClipboard".

RIP. A simple but useful add-on will be dearly missed <3
Report comment to moderator  
Reply With Quote
Unread 11/03/14, 08:42 PM  
eventHandler
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 55
Uploads: 4
Originally Posted by PaulScelus
It seems Update 5 has officially killed this add-on with the privatising of "CopyAllTextToClipboard".

RIP. A simple but useful add-on will be dearly missed <3
Yeah, that's a really perplexing decision. If there was some exploit with the function they are trying to fix, they could have at least made a replacement way of copying text from chat windows. Why are mmo's so bad at letting people copy chat messages?
Report comment to moderator  
Reply With Quote
Unread 11/04/14, 01:58 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1270
File comments: 791
Uploads: 34
Originally Posted by eventHandler
Originally Posted by PaulScelus
It seems Update 5 has officially killed this add-on with the privatising of "CopyAllTextToClipboard".

RIP. A simple but useful add-on will be dearly missed <3
Yeah, that's a really perplexing decision. If there was some exploit with the function they are trying to fix, they could have at least made a replacement way of copying text from chat windows. Why are mmo's so bad at letting people copy chat messages?
i will change the addon to open a textbox where you can manually copy the message with ctrl+c. not as convenient as it could be, but still useful.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 12/05/14, 05:49 AM  
QuadroTony
Banned
 
QuadroTony's Avatar
AddOn Author - Click to view AddOns

Forum posts: 828
File comments: 3944
Uploads: 3
hmm
addon not working for me
how to copy text now?
Report comment to moderator  
Reply With Quote
Unread 12/05/14, 12:11 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1270
File comments: 791
Uploads: 34
Originally Posted by QuadroTony
hmm
addon not working for me
how to copy text now?
It works for me and I use it quite often.
You just have to click on one of these little scroll icons left of a chat message to open a textbox where you can copy the text from.

If it is not working, it could either be that you are using a mac and the method I use to make the scroll icons clickable does not work there (I never had a chance to test it on a mac), or you want to copy a debug/system message which is simply not implemented.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 12/05/14, 12:18 PM  
QuadroTony
Banned
 
QuadroTony's Avatar
AddOn Author - Click to view AddOns

Forum posts: 828
File comments: 3944
Uploads: 3
oh! i see them now
strange, i didnt noticed they before
my fault
Report comment to moderator  
Reply With Quote
Unread 12/05/14, 12:35 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1270
File comments: 791
Uploads: 34
Originally Posted by QuadroTony
oh! i see them now
strange, i didnt noticed they before
my fault
I tried to make them as unobtrusive as possible. Maybe I overdid it a bit
You should also take note that left and right clicking the icon has a different effect.
Left click shows only the text without itemlinks, colortags etc. and right click shows everything.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 12/06/14, 08:11 AM  
QuadroTony
Banned
 
QuadroTony's Avatar
AddOn Author - Click to view AddOns

Forum posts: 828
File comments: 3944
Uploads: 3
i cant copy proper links...

look
it must look like this - LFG |H1:achievement:707:0:0|h|h|H1:achievement:396:0:0|h|h

but...

Report comment to moderator  
Reply With Quote
Unread 12/07/14, 02:37 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1270
File comments: 791
Uploads: 34
Originally Posted by QuadroTony
i cant copy proper links...

look
it must look like this - LFG |H1:achievement:707:0:0|h|h|H1:achievement:396:0:0|h|h

but...
It will look like that once you copy it into an external editor. the textbox and the chatinput inside eso automatically format it to look like what you see in the screenshot.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 12/07/14, 04:21 PM  
QuadroTony
Banned
 
QuadroTony's Avatar
AddOn Author - Click to view AddOns

Forum posts: 828
File comments: 3944
Uploads: 3
so, i cant copy other messages with links to the items/achievements with this addon?
to be able to post this messages again, with the same link, not only text of the link?


like when i copy my own message before sending it to the chat

when i copy my own message(before i send it, in the text editor field) and past it to the notepad, it looks like this:
LFG |H1:achievement:707:0:0|h|h|H1:achievement:396:0:0|h|h

but when i copy it by this addon, from chat directly, i cant get the same result
too bad....
mby you can do smthing about it? this addon will become alot more usefull, than just simple copypast of plain text, if we will be able copypast links to the items/achievements in proper format
Last edited by QuadroTony : 12/07/14 at 04:22 PM.
Report comment to moderator  
Reply With Quote
Unread 12/07/14, 06:28 PM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 853
File comments: 1120
Uploads: 33
Achievement and Book links

I made a small adjustment to the routine which replaces links with text to support achievements and books. So instead of [link] you will get for example [Epic Acquirer] or [Redguards, History and Heroes, V. 3]. In order to support all links with text I have replaced "linkTypeWithLabel[type]" with "#label > 0" (so linkTypeWithLabel table is no longer needed).

If you want to test it, here is modified code:
Lua Code:
  1. local library = {}
  2. for i = 1, GetNumLoreCategories() do
  3.     local _, numCollections = GetLoreCategoryInfo(i)
  4.     for j = 1, numCollections do
  5.         local _, _, _, totalBooks =  GetLoreCollectionInfo(i, j)
  6.         for k = 1, totalBooks do
  7.             local title = GetLoreBookInfo(i, j, k)
  8.             local _, _, _, bookId = ZO_LinkHandler_ParseLink(GetLoreBookLink(i, j, k))
  9.             library[bookId] = title
  10.         end
  11.     end
  12. end
  13.  
  14. local function HandleCopyLink(link, button, text, color, linkType, copyBufferIndex, messageIndex)
  15.     if(linkType == COPY_LINK_TYPE) then
  16.         copyBufferIndex = tonumber(copyBufferIndex)
  17.         messageIndex = tonumber(messageIndex)
  18.         local copyBuffer = copyBufferList[copyBufferIndex]
  19.         assert(copyBuffer ~= nil, "copy buffer not found")
  20.  
  21.         local message = copyBuffer:Get(messageIndex)
  22.         if button == MOUSE_BUTTON_LEFT then
  23.             message = message:gsub("(|H.-|h.-|h)", function(linkToReplace)
  24.                 local label, style, type, id = ZO_LinkHandler_ParseLink(linkToReplace)
  25.                 if(type == ITEM_LINK_TYPE) then
  26.                     return zo_strformat((tonumber(style) == LINK_STYLE_BRACKETS and SI_LINK_FORMAT_ITEM_NAME_BRACKETS or SI_LINK_FORMAT_ITEM_NAME), GetItemLinkName(linkToReplace))
  27.                 elseif(type == ACHIEVEMENT_LINK_TYPE) then
  28.                     return zo_strformat((tonumber(style) == LINK_STYLE_BRACKETS and SI_LINK_FORMAT_GENERIC_NAME_BRACKETS or SI_LINK_FORMAT_GENERIC_NAME), GetAchievementInfo(tonumber(id)))
  29.                 elseif(type == BOOK_LINK_TYPE) then
  30.                     return zo_strformat((tonumber(style) == LINK_STYLE_BRACKETS and SI_LINK_FORMAT_GENERIC_NAME_BRACKETS or SI_LINK_FORMAT_GENERIC_NAME), (library[id] or GetString(SI_ITEM_SUB_TYPE_BOOK)))
  31.                 elseif(#label > 0) then
  32.                     return label
  33.                 else
  34.                     return "[link]"
  35.                 end
  36.             end) -- remove links
  37.             message = message:gsub("|t.-|t", "") -- remove icons
  38.             message = message:gsub("|c......(.-)|r", "%1") -- remove color tags with an end tag
  39.             message = message:gsub("|c......(.-)", "%1") -- remove remaining malformed color tags
  40.             message = message:gsub("|u.-|u", "") -- remove other formating
  41.         end
  42.         clipBoardControl:SetText(message)
  43.         window:SetHidden(false)
  44.         clipBoardControl:TakeFocus()
  45.         return true
  46.     end
  47. end
__________________
@Garkin (retired from ESO)
My addons: SkyShards, LoreBooks, Dustman, Map Coordinates, No, thank you!, ... (full list)
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.