Category: Chat Mods
Addon Information
Works with 3.2
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Borlox's Portal Bug Reports Feature Requests
Author:
Version:
1.1
Date:
08-06-2009 01:07 PM
Size:
14.87 Kb
Downloads:
878
Favorites:
10
MD5:
Pictures
Dummy
CCopy
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.
  Archived Versions - CCopy
File Name
Version
Size
Author
Date
1.03
21kB
Borlox
05-01-2009 06:59 AM
r71927
17kB
Borlox
07-22-2008 12:11 PM
  Comments - CCopy
Post A Reply Comment Options
Old 05-02-2009, 06:55 AM  
Borlox
A Kobold Labourer
 
Borlox's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 30
Uploads: 12
Re: Suggestion for using ScrollingMessageFrame's build-in message history

Quote:
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.

Quote:
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   Edit/Delete Message Reply With Quote
Old 05-01-2009, 04:17 PM  
Saiket
A Murloc Raider
 
Saiket's Avatar
Interface Author - Click to view interfaces

Forum posts: 6
File comments: 166
Uploads: 14
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-2009 at 04:37 PM.
Saiket is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-01-2009, 12:56 PM  
xtoq
A Fallenroot Satyr
 
xtoq's Avatar
Interface Author - Click to view interfaces

Forum posts: 24
File comments: 507
Uploads: 1
Quote:
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   Edit/Delete Message Reply With Quote
Old 03-08-2009, 09:24 AM  
hank
A Kobold Labourer

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

hank
hank is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-15-2008, 03:03 PM  
Borlox
A Kobold Labourer
 
Borlox's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 30
Uploads: 12
Re: Error

Quote:
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   Edit/Delete Message Reply With Quote
Old 09-15-2008, 12:09 PM  
Fonjask
A Fallenroot Satyr
 
Fonjask's Avatar
Interface Author - Click to view interfaces

Forum posts: 22
File comments: 255
Uploads: 4
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.
__________________
Himeros
80 Draenei Holy Paladin
EU-Bronze Dragonflight-A

Last edited by Fonjask : 09-15-2008 at 01:06 PM.
Fonjask is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.