What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » See How Long You've Chatted To Contacts Each Month

Pages: (5): « First « 1 2 3 [ 4 ] 5 » Last »
See How Long You've Chatted To Contacts Each Month
Author: Message:
Fredzz
Full Member
***

Avatar

Posts: 409
Reputation: 12
37 / Male / –
Joined: Apr 2004
Status: Away
RE: RE: RE: See How Long You've Chatted To Contacts Each Month
quote:
Originally posted by j.g.allen
quote:
Originally posted by Fredzz
ok for some reason my logs are stored in montly folders.
In January Folder i have a file with all my logs: Fred@hotmail.com Zoltan@hotmail.com .. etc and with msg plus i browse to a January Folder and click go and it says  CHAT LOG DOES NOT EXIST


The program for foldered months has not be written yet.


niiiice :P ill be waiting
Fredzz rox00rz
02-07-2005 09:24 PM
Profile E-Mail PM Find Quote Report
haydos
Veteran Member
*****

dirty dirty house music

Posts: 1026
Reputation: 49
– / Male / Flag
Joined: Dec 2004
RE: See How Long You've Chatted To Contacts Each Month
just curious to know how long until the .txt file version is available??
nice prog btw (h5)(h5)
quote:
Originally posted by WDZ
don't be lazy
[Image: gayspam.gif]

02-08-2005 09:27 AM
Profile PM Find Quote Report
jasonallen
Full Member
***

Avatar
www.jason-allen.co.uk

Posts: 127
Reputation: 2
36 / Male / –
Joined: Jul 2003
O.P. RE: RE: See How Long You've Chatted To Contacts Each Month
quote:
Originally posted by inc_haydn
just curious to know how long until the .txt file version is available??
nice prog btw (h5)(h5)


The all chat logs in 1 txt file program, shdn't be too long, having a few problems. Tends to not work with really big files :(
Windows XP Professional
Windows Live Messenger 14.0.8050.1202
Messenger Plus! Live 4.79.0.342
02-08-2005 04:20 PM
Profile PM Web Find Quote Report
jasonallen
Full Member
***

Avatar
www.jason-allen.co.uk

Posts: 127
Reputation: 2
36 / Male / –
Joined: Jul 2003
O.P. RE: See How Long You've Chatted To Contacts Each Month
Problem solved with the single text file chat log. Available again.
Windows XP Professional
Windows Live Messenger 14.0.8050.1202
Messenger Plus! Live 4.79.0.342
02-09-2005 10:47 PM
Profile PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: See How Long You've Chatted To Contacts Each Month
i like the idea, but would be better if it listed the available logs.
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
02-09-2005 11:35 PM
Profile E-Mail PM Web Find Quote Report
jasonallen
Full Member
***

Avatar
www.jason-allen.co.uk

Posts: 127
Reputation: 2
36 / Male / –
Joined: Jul 2003
O.P. RE: See How Long You've Chatted To Contacts Each Month
I've planning to have this in future versions.
Windows XP Professional
Windows Live Messenger 14.0.8050.1202
Messenger Plus! Live 4.79.0.342
02-10-2005 01:00 PM
Profile PM Web Find Quote Report
user27089
Disabled Account


Posts: 6321
Joined: Nov 2003
Status: Away
RE: See How Long You've Chatted To Contacts Each Month
[Image: attachment.php?pid=378325]

whenever I try and use it and type in an email adress, I get this error, any ideas why, I download the *.txt compatible version :s...

.jpg File Attachment: error.jpg (28.84 KB)
This file has been downloaded 384 time(s).
02-10-2005 04:33 PM
Profile PM Find Quote Report
jasonallen
Full Member
***

Avatar
www.jason-allen.co.uk

Posts: 127
Reputation: 2
36 / Male / –
Joined: Jul 2003
O.P. RE: RE: See How Long You've Chatted To Contacts Each Month
quote:
Originally posted by traxor
[Image: attachment.php?pid=378325]

whenever I try and use it and type in an email adress, I get this error, any ideas why, I download the *.txt compatible version :s...


This works for MSG Plus chat logs in the english language only. Check the final line of the chat log and check that it there is only 1 blank line at the end and no more than that.
Windows XP Professional
Windows Live Messenger 14.0.8050.1202
Messenger Plus! Live 4.79.0.342
02-10-2005 04:37 PM
Profile PM Web Find Quote Report
user27089
Disabled Account


Posts: 6321
Joined: Nov 2003
Status: Away
RE: See How Long You've Chatted To Contacts Each Month
it seems okay with all of the short conversations, it only gets this error when checking lengthy conversations...
02-10-2005 05:18 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: See How Long You've Chatted To Contacts Each Month
didn't tested it yet, but a few suggestions (from what I read in this thread). Please do not take all this in the wrong way, it is meant as positive criticism. So first of all, let me tell you that it is a nice idea to make a program for (Y). But...


date problem/reconizing dates:

First of all, I don't realy know why you read in the date though. It is of no use actually for the thing you want to do (calculating total chattime from a log)!. But anyways...

take a look at http://www.msgplus.net/help_registry.php
quote:
HKCU\Software\Patchou\MsgPlus2\your@email.com\Preferences\LogHeadDateFormat
=> local specific!
=> Format of the timestamp written in the chat log headers (Session Start line). For more information about the tags you can use, click here.
In other words, use that registry key to obtain the correct format that is used in the logs. The actual names of months/days/etc can be obtained from the system with an API.

When the format is still different then it is declared in that registry key (can happen when the user changed that registrykey previously), you can (in some cases) still obtain the correct date if you scan that date-text for the proper elements (1 or 2 digits for the day, 4 digits for the year and a textstring for the month), enumerate all the words of the months for all the available languages in plus! (can easly be found on the web) and you have your complete auto-detection of the correct date. Add an errorchecking for wrong cases so you can still obtain the correct format* and it is almost fool-proof.

Also, provide a way to the user to choose the above "automatic" option, and to enter his own format (when the date couldn't be verified or to process logs from other people maybe or whatever).

*When the registrykey defines "dd/MM" but the actually text in a log is "MM/dd", you can see the difference and what is what if one of the numbers is higher then 12 for obvious reasons...

Unicode

Support Unicode. This is vital in any Plus! related application!

Clock

I didn't tested it yet, so this might be trivial:
* What happens when the log contains times passing midnight?

*
quote:
Originally posted by j.g.allen
It supports 24 hr clocks and US/UK Dates
Make sure it also supports 12hr clocks. Same applies here as with the date: use the registrykey to determine the clock settings and/or the system default notation. Also, a 24h clock can be reconized if hours are >12. Also, it would be nice if the user can define the clock-type before processing the logs (just as with the "date-problem").

*
quote:
Originally posted by j.g.allen
quote:
Originally posted by jacoblo33
.--------------------------------------------------------------------.
| Session Start: 05 February 2005                                    |
| Participants:                                                      |
|    Jacob (aa@hotmail.se)                                           |
|    Anna (test@hotmail.com)                                         |
.--------------------------------------------------------------------.

My "test" file only consists of that text...
Any idea what else it could be?

No idea soz, it works with the properly generated files.
He's missing the daytext, although this shouldn't be an issue...
So, it also means that your code is (messy?)/faulty; you shouldn't take in account any text before the actual date, thus including the word for the day... or... you should use the method I described above (of course this can also include the discarding of the daytext as it is of no use).

eg: if you can use regular expressions, it would be a good and very quick way in grabbing the part of the line that you need while autoamtically ignoring all the rest.

Processing
quote:
Originally posted by j.g.allen
You might need a blank line at the bottom.
Why? I mean, how do you search for the timevalues??

Any line not starting with "[" should be disregarded...

And only when you encounter ".--------------------------------------------------------------------." there is a new session started. Any other line should be ignored.

Every line that you encounter which begins with "[" should be dealt with as the end of the conversation*. This also makes that improper saved logs (due to systemcrash or whatever) can still be read properly, even if the "["-line is the last line and even if there are 10 empty lines after it.

*Only the first line you encounter which starts with "[" after the second ".-----." line is a start for your timecalculation.

Do all this until you actualy reach the EOF-marker of the file, only then you have processed the whole file. If the last line you encounter is a "["-line ended with an EOF-marker, then that means that the file is ended and you shouldn't read any further.

Errors
quote:
Originally posted by j.g.allen
quote:
Originally posted by traxor
[Image: attachment.php?pid=378325]

whenever I try and use it and type in an email adress, I get this error (Type mismatch), any ideas why, I download the *.txt compatible version :s...
This works for MSG Plus chat logs in the english language only. Check the final line of the chat log and check that it there is only 1 blank line at the end and no more than that.
An "Type mismatch" occurs when you try to assign an integer to a string variable or something like that. This almost can't have anything to do with the type of files you read in. Text should be text (eg: don't read in integers, bytes, etc. (it works though, if you know what you're doing) but rather read it in as strings, only when you need to process the strings convert them to numbers (only if you're sure that you have read in a number of course, otherwise the conversion will result in number 0). And again, don't assign a numbervariable to a stringvariable or vice-versa or something of that kind)

Other stuff
quote:
Originally posted by j.g.allen
The all chat logs in 1 txt file program, shdn't be too long, having a few problems. Tends to not work with really big files
Don't read the file as a whole, read it/process it line per line. This is the easiest way/more efficient to program and there will be no limit on filesize.

GUI

Make the fileselect dialog much wider, it is realy (too) small ;)

Test
You can test your program with the attached log. If it can cope with all the bits and pieces, then the reading-in and calculating should be ok ;)

stats for the testlog:
session 1: +00:01:09
session 2: +00:00:16
session 3: disregard (not enough time values to process)
session 4: +25:53:21
-note1: it is very unlikely that you encounter this in 1 session (a +24h session), but it is possible though. But this example is just to show that you need to cope with times passing midnight.
-note2: Also note that if you encounter 2 "[00:00:00]"-lines after eachother, it should be interpreted as 2 lines entered at the same time and not with a period of 24h between them as this is very unlikely because of the first note (although it could happen <= and this also proofs that calculating the total chattime like this isn't always 100% correct (only in rare cases though)).
session 5: disregard (corrupted/interrupted session)
session 6: +00:01:09
session 7: disregard (corrupted session)
session 8: +00:05:32 ! (disregard last line as you don't know the complete and correct timevalue)

  total chattime should be 26:01:27 (in a total of 5 sessions)

.txt File Attachment: test@hotmail.com.txt (3.86 KB)
This file has been downloaded 265 time(s).

This post was edited on 02-11-2005 at 12:30 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
02-10-2005 07:36 PM
Profile PM Find Quote Report
Pages: (5): « First « 1 2 3 [ 4 ] 5 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On