Download
(15Kb)
Download
Updated: 10-14-10 05:58 AM
Updated:10-14-10 05:58 AM
Created:unknown
Downloads:6,193
Favorites:23
MD5:

CCopy  Popular! (More than 5000 hits)

Version: 1.4
by: Borlox [More]

Small addon to copy chat lines.

CCopy has some configuration options, but you have to edit the file Core.lua in the CCopy directory to change them.

Configuration options

MARKER Line 14
Default: "*"
The "bit to click" that is displayed before the chat line.

SHOW_TIME Line 17
Default: false
Set this to true if you want to have the time displayed before chat lines instead of the marker string.

TIME_FMT Line 20
Default: "[%H:%M:%S]"
The format string for Lua's date function. See http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html

Other versions:
The latest beta version can be get here.

1.4:
- Fixes for patch 4.0.1

1.3:
- Fixes for patch 3.3.5

1.2:
- proper raid target icon handling ({rt1},...)
- release for patch 3.3
Post A Reply Comment Options
Unread 08-15-10, 10:34 AM  
Traverse
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Only works on chatframe1 and for some reason disables mouse scrolling. :x

Regards,

Trav
Report comment to moderator  
Reply With Quote
Unread 03-04-10, 09:55 AM  
Borlox
A Deviate Faerie Dragon
 
Borlox's Avatar
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 40
Uploads: 11
Originally posted by Rufio
Getting this error
*snip*

wtb fix
Very strange error, this version should fix it though: http://www.wowace.com/addons/ccopy/f...-2-1-ge8791f3/
Report comment to moderator  
Reply With Quote
Unread 02-20-10, 08:32 PM  
Rufio
A Murloc Raider
 
Rufio's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 289
Uploads: 5
Getting this error
Code:
Interface\AddOns\CCopy\Core.lua:76: bad argument #2 to 'format' (string expected, got nil)
Count: 99

Call Stack:
[C]: ?
[C]: in function `format'
Interface\AddOns\CCopy\Core.lua:76: in function <Interface\AddOns\CCopy\Core.lua:75>
(tail call): ?
...ace\AddOns\Blizzard_CombatLog\Blizzard_CombatLog.lua:747: in function <...ace\AddOns\Blizzard_CombatLog\Blizzard_CombatLog.lua:738>
wtb fix
Report comment to moderator  
Reply With Quote
Unread 05-02-09, 04:55 AM  
Borlox
A Deviate Faerie Dragon
 
Borlox's Avatar
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 40
Uploads: 11
Re: Suggestion for using ScrollingMessageFrame's build-in message history

Originally posted by xtoq
Does anyone actually READ the FAQ for addons?

From the front page:
SHOW_TIME Line 17
Default: false
Set this to true if you want to have the time displayed before chat lines instead of the marker string.
The option was added some time after the comment you quoted was made, so it was a valid question.

Originally posted by Saiket
Just a quick thought on how you could avoid the need for caching chat messages:

Links in scrolling chat frames are always anchored relative to the fontstring object that contains their message (each visible message has its own fontstring in ScrollingMessageFrames). So instead hooking SetItemRef, you could hook the OnHyperlinkClick(self,Link,LinkText,Button) handler for all standard chat frames. If the link is yours (check the Link argument), you can get the full message that included the link with the following script:
Code:
select( 2, GetMouseFocus():GetPoint( 1 ) ):GetText()
Keep in mind that the text returned will include all of the formatting that was applied, including timestamps and your "*" token at the beginning of the message. I'd consider that a small price to pay to use no additional memory, however.
____
Edit: Actually, you could hook ChatFrame_OnHyperlinkShow once instead of hooking each OnHyperlinkClick handler separately. They have the same args. You might want to validate the return from GetMouseFocus (make sure the returned frame is of type "Button" and has no name) and that GetPoint operation (make sure it's of type "FontString"), though.
That's a good idea, I'll look into this.
Report comment to moderator  
Reply With Quote
Unread 05-01-09, 02:17 PM  
Saiket
A Chromatic Dragonspawn
 
Saiket's Avatar
AddOn Author - Click to view AddOns

Forum posts: 154
File comments: 330
Uploads: 9
Suggestion for using ScrollingMessageFrame's build-in message history

Just a quick thought on how you could avoid the need for caching chat messages:

Links in scrolling chat frames are always anchored relative to the fontstring object that contains their message (each visible message has its own fontstring in ScrollingMessageFrames). So instead hooking SetItemRef, you could hook the OnHyperlinkClick(self,Link,LinkText,Button) handler for all standard chat frames. If the link is yours (check the Link argument), you can get the full message that included the link with the following script:
Code:
select( 2, GetMouseFocus():GetPoint( 1 ) ):GetText()
Keep in mind that the text returned will include all of the formatting that was applied, including timestamps and your "*" token at the beginning of the message. I'd consider that a small price to pay to use no additional memory, however.
____
Edit: Actually, you could hook ChatFrame_OnHyperlinkShow once instead of hooking each OnHyperlinkClick handler separately. They have the same args. You might want to validate the return from GetMouseFocus (make sure the returned frame is of type "Button" and has no name) and that GetPoint operation (make sure it's of type "FontString"), though.
Last edited by Saiket : 05-01-09 at 02:37 PM.
Report comment to moderator  
Reply With Quote
Unread 05-01-09, 10:56 AM  
xtoq
An Aku'mai Servant
 
xtoq's Avatar
AddOn Author - Click to view AddOns

Forum posts: 32
File comments: 642
Uploads: 4
Originally posted by hank
Hi
Is there a way to show a timestamp instead of a "*" or sth ?

hank
Does anyone actually READ the FAQ for addons?

From the front page:
SHOW_TIME Line 17
Default: false
Set this to true if you want to have the time displayed before chat lines instead of the marker string.
Report comment to moderator  
Reply With Quote
Unread 03-08-09, 07:24 AM  
hank
A Murloc Raider
 
hank's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 547
Uploads: 1
Hi
Is there a way to show a timestamp instead of a "*" or sth ?

hank
Report comment to moderator  
Reply With Quote
Unread 09-15-08, 01:03 PM  
Borlox
A Deviate Faerie Dragon
 
Borlox's Avatar
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 40
Uploads: 11
Re: Error

Originally posted by Fonjask
It's a great addon which is easy to use etc., and never had bugs.
But, since I use BossTalk (http://www.wowinterface.com/download...-BossTalk.html), every time when I put my mouse on that button it gives an error message which I will update here below.

Date: 2008-09-15 19:02:34
ID: 56
Error occured in: Global
Count: 1
Message: ..\AddOns\CCopy\Core.lua line 46:
bad argument #3 to 'format' (string expected, got nil)
Debug:
[C]: ?
[C]: format()
CCopy\Core.lua:46:
CCopy\Core.lua:43
(tail call): ?
BossTalk\BossTalk.lua:246: OnEnter()
...ns\BossTalk\Libs\FuBarPlugin-2.0\FuBarPlugin-2.0.lua:950:
...ns\BossTalk\Libs\FuBarPlugin-2.0\FuBarPlugin-2.0.lua:943
AddOns:
BossTalk, v2.831


~Fonjask~

PS: It's best to change the '*' on line 14 to ' ', because the * quite ruined my chatlog ^^ just a little advice

PS2: I have not got FuBaR, and I filtered out the rest of my addons, since I have 118 at the moment, and it was quite spammish.
This is not a CCopy error. BossTalk is trying to print a nonexistant value, which would cause an error without CCopy too.
Report comment to moderator  
Reply With Quote
Unread 09-15-08, 10:09 AM  
Fonjask
A Fallenroot Satyr
 
Fonjask's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 266
Uploads: 2
Error

It's a great addon which is easy to use etc., and never had bugs.
But, since I use BossTalk (http://www.wowinterface.com/download...-BossTalk.html), every time when I put my mouse on that button it gives an error message which I will update here below.

Date: 2008-09-15 19:02:34
ID: 56
Error occured in: Global
Count: 1
Message: ..\AddOns\CCopy\Core.lua line 46:
bad argument #3 to 'format' (string expected, got nil)
Debug:
[C]: ?
[C]: format()
CCopy\Core.lua:46:
CCopy\Core.lua:43
(tail call): ?
BossTalk\BossTalk.lua:246: OnEnter()
...ns\BossTalk\Libs\FuBarPlugin-2.0\FuBarPlugin-2.0.lua:950:
...ns\BossTalk\Libs\FuBarPlugin-2.0\FuBarPlugin-2.0.lua:943
AddOns:
BossTalk, v2.831


~Fonjask~

PS: It's best to change the '*' on line 14 to ' ', because the * quite ruined my chatlog ^^ just a little advice

PS2: I have not got FuBaR, and I filtered out the rest of my addons, since I have 118 at the moment, and it was quite spammish.
__________________
~~~~~~~~~~~~
Last edited by Fonjask : 09-15-08 at 11:06 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: