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

Pages: (2): « First [ 1 ] 2 » Last »
(Beta-Testing) Little fun script
Author: Message:
Deco
Full Member
***


Posts: 188
Reputation: 4
41 / 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 267 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
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Little fun script
This would be good to sit alongside the ePenis script :D

Why don't you package yours into a PLSC?
[Image: spartaafk.png]
08-11-2006 03:32 PM
Profile PM Web Find Quote Report
Deco
Full Member
***


Posts: 188
Reputation: 4
41 / Male / Flag
Joined: Aug 2006
O.P. RE: Little fun script
Hey there.

Thanks for the reply!

I've just started using msn live plus yesterday so I still haven't got all the knowledge to build the script in a decent way.. but I'm working on it. Been reading this forums like a maniac.

I also thought I'd post this script before I took it any further. I'm sure someone will come up with enhancements to the code in a day or two. Or maybe a whole new better faster script!

But thanks for the feedback!

08-11-2006 03:49 PM
Profile E-Mail PM Web Find Quote Report
Intosia
Junior Member
**

Avatar
I'm dynamic ^^

Posts: 78
40 / Male / –
Joined: Mar 2004
RE: Little fun script
haha lol, yeah its kinda funny :P
08-11-2006 04:52 PM
Profile E-Mail PM Web Find Quote Report
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
RE: Little fun script
now it says UP: NaN DOWN: NaN I don;t understand:S
08-11-2006 04:59 PM
Profile E-Mail PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Little fun script
NaN means not a number. did you type "UP: O" or "UP: 0"?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
08-11-2006 05:39 PM
Profile PM Web Find Quote Report
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
RE: Little fun script
I copied what he said to put
08-11-2006 07:07 PM
Profile E-Mail PM Find Quote Report
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
RE: Little fun script
Lol, cool little script, maybe  you should make it a .plsc.
[Image: jumbled.png]
08-11-2006 07:15 PM
Profile PM Find Quote Report
Thor
Veteran Member
*****

Avatar
Awwwwwwww.

Posts: 1118
Reputation: 42
31 / – / Flag
Joined: May 2006
RE: Little fun script
I like it, maybe an UI could be made with options and a mask setting. :)
:plus4: Translation guidelines for Messenger Plus! Live
I'm no longer around this town, but I miss the community dearly. You can always find me lurking in #banana, or at
nitrolinken.net.
08-11-2006 07:24 PM
Profile PM Web Find Quote Report
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
RE: Little fun script
grrr.... mine doesn't work!!!... what do I put as my PM?
08-11-2006 07:53 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » 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