Download
(15 Kb)
Download
Updated: 10-14-10 05:58 AM
Updated:10-14-10 05:58 AM
Created:unknown
Downloads:4,069
Favorites:22
MD5:
CCopy
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
Archived Files (2)
File Name
Version
Size
Author
Date
1.3
15kB
Borlox
07-11-10 01:10 PM
1.2
15kB
Borlox
12-08-09 12:53 PM


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
Traverse is offline 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: 12
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/
Borlox is offline 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: 6
File comments: 207
Uploads: 7
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
Rufio is offline 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: 12
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.
Borlox is offline 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: 152
File comments: 329
Uploads: 21
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.
Saiket is offline 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: 641
Uploads: 3
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.
xtoq is offline 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: 565
Uploads: 8
Hi
Is there a way to show a timestamp instead of a "*" or sth ?

hank
hank is offline 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: 12
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.
Borlox is offline 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: 22
File comments: 264
Uploads: 6
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.
Fonjask is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: