Shoutbox

[release] Letter Counter - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [release] Letter Counter (/showthread.php?tid=62982)

[release] Letter Counter by Ezra on 07-10-2006 at 03:13 PM

This script will keep track of all the letters and words you type.

You can easily show the statistics to your contact or request his/her statistics.

The Statistics are colored and multi-lined for readability, in version 1.03 there are also percentages included.

Preview:

LETTERCOUNT:
  A = 187 (9.21 %) , B = 34 (1.67 %) , C = 44 (2.17 %)
  D = 67 (3.30 %) , E = 278 (13.69 %) , F = 24 (1.18 %)
  G = 46 (2.26 %) , H = 87 (4.28 %) , I = 139 (6.84 %)
  J = 24 (1.18 %) , K = 36 (1.77 %) , L = 104 (5.12 %)
  M = 56 (2.76 %) , N = 135 (6.65 %) , O = 130 (6.40 %)
  P = 89 (4.38 %) , Q = 0 (0.00 %) , R = 123 (6.06 %)
  S = 124 (6.11 %) , T = 165 (8.12 %) , U = 39 (1.92 %)
  V = 20 (0.98 %) , W = 49 (2.41 %) , X = 0     (0.00 %)
  Y = 25 (1.23 %) , Z = 6 (0.30 %)
TOTALS: 2031
WORDS: 481

The Commands:

  • /lettercount
  • /resetlettercount
  • !lettercount

TODO:
  • Add a Preferences Screen
  • Make colors user defined
  • Make letters per line user defined
  • Make the percentage optional
  • Add Easy Upgrader System™
Any bugs or suggestions? Reply! :D

Latest version: 1.03

EDIT: I made a Google Code page, with the newest trunk builds.
http://code.google.com/p/lettercount/

Please add any bugs to the tracker there, that's better to follow bugs :-)

Notice: I'm not responsible for what the latest trunk build will do to your computer. It works fine on my pc else I wouldn't upload it to the repository, but it might have unwanted effects on your pc. If your computer explodes or anything else happens to it, you can't blame me...
RE: [release] Letter Counter by Tobiaz on 07-10-2006 at 09:50 PM

Great, I like this. It's like the MessengerRank thing. But it would be nice, if you could see how many letters you sent over all...


RE: [release] Letter Counter by Ezra on 07-10-2006 at 09:52 PM

quote:
Originally posted by Tobiaz
ou could see how many letters you sent over all...
That could be implemented as well, you mean instead of seperated per letter, how many letters all combined?

This is possible, but remember it only counts letters so no numbers or other signs.
RE: [release] Letter Counter by Tobiaz on 07-10-2006 at 09:53 PM

Yes... that's right. But how I said, it would be nice... ;)

again, great work...


RE: [release] Letter Counter by Ezra on 07-10-2006 at 10:33 PM

Allright, I made it, used a seperate command for it, thought later it could also be printed under the other stats, but hey, it's late and all...

The command is: !letterstotal

I'll think about it and maybe rip it out again tomorrow, thinking about some other things too....

I also fixed the /resetlettercount command, it caused plus! to say it's unrecognized but still work :P, This was because I forgot to return an empty string...

Edit:
Attachment Removed, for the latest version check the first post


RE: [release] Letter Counter by Tobiaz on 07-11-2006 at 07:32 AM

Really great work ;) (h5)

I think, if you would come to switzerland, i would buy you a beer... ;)


RE: [release] Letter Counter by Ezra on 07-11-2006 at 11:11 AM

Got another version working :D

Better than ever :P

I changed quite a lot also...

The Stats are now colored, 5 letters on a row and the total stats on the bottom.

In the old version both scripts (yours and your contacts) would reply on the !lettercount command, now only your contact will reply on this command, to show your stats use the new /lettercount command (Notice the '!' & '/')

And I added a menu Entry...

The command in the new version are

  • /lettercount                [Send your LetterCount]
  • /resetlettercount         [Reset your LetterCount]
  • !lettercount                [Show your Contacts Lettercount](Only works if your contact has the script installed)

File from the first post is updated

Found any bugs or have suggestions? Reply :D

EDIT:

I need help :P, I'm thinking about changing the color codes to the old style msgplus! so that old msgplus! users can see the colors too... BUT... I'm thinking that the new bbcode style tags are better to read if you DON'T have msgplus! at all, cause ·$04356·$0 is harder to read than [c=4]356[/c].

What do you guys think?
RE: [release] Letter Counter by P4R4D0x on 07-15-2006 at 12:28 AM

Will you be making a menu for it?


RE: RE: [release] Letter Counter by Keikonium on 07-15-2006 at 12:37 AM

quote:
Originally posted by Ezra
I need help :P, I'm thinking about changing the color codes to the old style msgplus! so that old msgplus! users can see the colors too... BUT... I'm thinking that the new bbcode style tags are better to read if you DON'T have msgplus! at all, cause ·$04356·$0 is harder to read than [c=4]356[/c].

What do you guys think?


Personally I think Plus! should have a silent "ping" that first checks if a contact has Plus! then if they don't return plain text. However the BB code would still show for 7.5 Plus! users, so a version check could be added.

As for your question go with the BB code. Much easier to read expecally if surrounded by other letters and numbers :P.
RE: [release] Letter Counter by Ezra on 07-15-2006 at 11:23 AM

quote:
Originally posted by P4R4D0x
Will you be making a menu for it?

There is a menu already... It's in the convo windows

quote:
Originally posted by Keikonium
Personally I think Plus! should have a silent "ping" that first checks if a contact has Plus! then if they don't return plain text. However the BB code would still show for 7.5 Plus! users, so a version check could be added.

As for your question go with the BB code. Much easier to read expecally if surrounded by other letters and numbers :P.

Yeah, I thougt about it, BBcode is better :)

If that silent ping or silent version check ever comes I'll add it, but untill then BBcode it is :)

RE: [release] Letter Counter by Ezra on 07-15-2006 at 10:58 PM

quote:
Originally posted by Jexel
hmmm interesting script...perhaps implement a word counter to make its use more practical? I think it was requested before in another thread.

Yeah I'm thinking about the most practical way to implement this. Probably won't start on it until atleast monday when i'm back at work.

Right now I think this is the best way:

code:
function OnSendMessage(Message, Origin, Window)
{
  if (words = Message.match(/(^|\s+)(.*?)($|\s+)/igm) != null)
  {
    totalwords += words.length();
  }
}

Simple and effective
RE: [release] Letter Counter by AberNStein on 07-15-2006 at 11:20 PM

can we get a percentage maybe?
as in A = 157 (7.9%)


RE: [release] Letter Counter by Chris4 on 07-16-2006 at 02:38 AM

code:
A = 47 , B = 14 , C = 15 , D = 34 , E = 84
F = 14 , G = 19 , H = 25 , I = 56 , J = 4
K = 12 , L = 36 , M = 18 , N = 78 , O = 81
P = 26 , Q = 0 , R = 27 , S = 46 , T = 59
U = 38 , V = 2 , W = 30 , X = 12 , Y = 22
Z = 3
TOTALS:
802

I think Q is the most unused letter of the alphabet :P
RE: [release] Letter Counter by Supersonicdarky on 07-16-2006 at 11:43 PM

it reset after restarting [Image: msn_sad.gif] (shuting down then starting up actually)


RE: [release] Letter Counter by Ezra on 07-17-2006 at 08:34 AM

quote:
Originally posted by Supersonicdarky
it reset after restarting [Image: msn_sad.gif] (shuting down then starting up actually)

Was there any error notice in the debug window?
RE: [release] Letter Counter by Ezra on 07-18-2006 at 01:58 PM

*bump, Released version 1.03

Tell me what you think of it... Will also add it to the script db later.


RE: [release] Letter Counter by Chris4 on 07-18-2006 at 02:07 PM

Very good :D Glad it doesn't reset your letter count when you update.


RE: [release] Letter Counter by Ezra on 07-18-2006 at 02:08 PM

quote:
Originally posted by Chris4
Very good :D Glad it doesn't reset your letter count when you update.

Yeah, I made sure it didn't have to reset :)
RE: [release] Letter Counter by kidwizz on 07-20-2006 at 08:01 AM

good idea. how come !lettercount dosent work? it just sends !lettercount to the contact


RE: [release] Letter Counter by Ezra on 07-20-2006 at 08:38 AM

quote:
Originally posted by kidwizz
good idea. how come !lettercount dosent work? it just sends !lettercount to the contact

That's because !lettercount requests the lettercount of your contact, but that contact also needs plus! and my script to be installed.
RE: [release] Letter Counter by Chris4 on 07-20-2006 at 06:44 PM

* Chris4 thinks of WhatPulse, then thinks of a Messenger version :P


RE: [release] Letter Counter by ins4ne on 07-20-2006 at 08:03 PM

i used lettercount since 1.01. good to have an update. didnt realise it was released yet :P


RE: [release] Letter Counter by Ezra on 07-31-2006 at 03:08 PM

I made a Google Code page, here you can download the latest trunk builds and submit bugs to the bugtracker. Please add every bug over there, it's better to follow.

http://code.google.com/p/lettercount/


RE: [release] Letter Counter by Rule on 07-14-2008 at 08:00 PM

hi, how can i add more letters?
öäü <>,. and so on?


RE: [release] Letter Counter by Ezra on 07-14-2008 at 11:15 PM

I didn't add support for non-ascii, in the current trunk I use the charCode to track the letters. You should be able to expand the code to let it track special characters too. However I guess you want the ö to be counted as a normal o right? That will be harder, you'll need some logic to map the ö to the normal o.

That said, I don't really maintain the script anymore (last update was 2 years ago), so if you know any jscript you could fork it I guess and try to implement it.

EDIT: The part of the code where it counts the numbers is (in the current trunk) from line 92 till 98.