What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » (Beta-Testing) Little fun script

(Beta-Testing) Little fun script
Author: Message:
Deco
Full Member
***


Posts: 188
Reputation: 4
42 / Male / Flag
Joined: Aug 2006
O.P. (Beta-Testing) Little fun script
This is a little fun script I've made to compete with my friends to see who gets more messages in a regular day. My sister also noted that I talk way mroe than I listen.. and I could see that with this script. For the first hour I had like 200 msgs UP and 150 down!

Let me know how much you talk!!!

Thanks!

Edit:
Ok guys I just got home and I finished a newer, cleaner, smarter and better version.

I packed it into a plsc so you can install it.

I made it so that the script saves your number of messages up and down into the registry (as you can see in the code).

I'm always open to suggestions I hope this version works for most of you and please keep me posted!

Thanks!

ps: script code bellow

------------- code -------------------

var nUp = 0;
var nDown = 0;

function OnEvent_ChatWndSendMessage(ChatWnd,Message) {
nUp++;
UpdateMessage();
return Message;
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if(Origin != Messenger.MyName) {
nDown++;
}
UpdateMessage();
}
function UpdateMessage() {
Messenger.MyPersonalMessage = "UP: "+ nUp + " DOWN: " + nDown;
}

function OnEvent_Initialize(MessengerStart)
{
nUp = ReadRegistry("MessageCounterUP");
nDown = ReadRegistry("MessageCounterDOWN");
UpdateMessage();
}

function OnEvent_Uninitialize(MessengerExit)
{
WriteRegistry("MessageCounterUP",nUp);
WriteRegistry("MessageCounterDOWN",nDown);
}

function WriteRegistry (key, value) {
var Shell = new ActiveXObject("WScript.Shell");
return Shell.RegWrite(MsgPlus.ScriptRegPath + Messenger.MyUserId + "\\" + key, value, "REG_SZ");
}

function ReadRegistry (key) {
var Shell = new ActiveXObject("WScript.Shell");
try {
return Shell.RegRead(MsgPlus.ScriptRegPath + Messenger.MyUserId + "\\" + key);
} catch (e) {
WriteRegistry(key, 0);

return 0;
}
}

function RemoveRegistry (key) {
var Shell = new ActiveXObject("Wscript.Shell");
return Shell.RegDelete(MsgPlus.ScriptRegPath + Messenger.MyUserId + "\\" + key);
}



.plsc File Attachment: MessageCount.plsc (963 bytes)
This file has been downloaded 288 time(s).

This post was edited on 08-14-2006 at 01:40 AM by Deco.
08-11-2006 03:19 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
(Beta-Testing) Little fun script - by Deco on 08-11-2006 at 03:19 PM
RE: Little fun script - by RaceProUK on 08-11-2006 at 03:32 PM
RE: Little fun script - by Deco on 08-11-2006 at 03:49 PM
RE: Little fun script - by Intosia on 08-11-2006 at 04:52 PM
RE: Little fun script - by dylan! on 08-11-2006 at 04:59 PM
RE: Little fun script - by ShawnZ on 08-11-2006 at 05:39 PM
RE: Little fun script - by dylan! on 08-11-2006 at 07:07 PM
RE: Little fun script - by vaccination on 08-11-2006 at 07:15 PM
RE: Little fun script - by Thor on 08-11-2006 at 07:24 PM
RE: Little fun script - by dylan! on 08-11-2006 at 07:53 PM
RE: Little fun script - by RaceProUK on 08-12-2006 at 12:30 AM
RE: Little fun script - by Deco on 08-13-2006 at 11:57 PM
RE: Little fun script - by Firehalk on 08-14-2006 at 12:57 AM
RE: Little fun script - by Deco on 08-14-2006 at 01:26 AM
RE: Little fun script - by Firehalk on 08-14-2006 at 01:41 AM
RE: (Beta-Testing) Little fun script - by Deco on 08-14-2006 at 01:44 AM


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