What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Counter by the messages

Counter by the messages
Author: Message:
qgroessl
Veteran Member
*****


Posts: 1615
Reputation: 22
33 / – / Flag
Joined: Jul 2005
Status: Away
RE: Counter by the messages
code:
function OnEvent_Initialize(MessengerStart)
{
if (MessengerStart == false)
{
WriteRegistry("MessagesReceive", "0");
}
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Message)
{
value = ReadRegistry("MessagesReceive");
WriteRegistry("MessagesReceive", (parseInt(value) + 1));
Message = "( " + value + " ) " + Message;

return Message;
}

function WriteRegistry(key, value)
{
var Shell = new ActiveXObject("WScript.Shell");
var ValRegPath = MsgPlus.ScriptRegPath + key;
Shell.RegWrite(ValRegPath, value);
}

function ReadRegistry(key)
{
var Shell = new ActiveXObject("WScript.Shell");
return value = Shell.RegRead(MsgPlus.ScriptRegPath + key);
}

What's wrong with this code?... it's the same as Ezra's code exact, except for receiving messages... It'll count the recieving messages but then when I send messages, it is messed up.
06-26-2006 04:35 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Counter by the messages - by ThunderStorm on 06-26-2006 at 09:46 AM
RE: Counter by the messages - by Ezra on 06-26-2006 at 10:26 AM
RE: Counter by the messages - by ThunderStorm on 06-26-2006 at 11:12 AM
RE: Counter by the messages - by Ezra on 06-26-2006 at 11:16 AM
RE: Counter by the messages - by ThunderStorm on 06-26-2006 at 11:46 AM
RE: Counter by the messages - by Ezra on 06-26-2006 at 11:49 AM
RE: Counter by the messages - by ThunderStorm on 06-26-2006 at 12:05 PM
RE: Counter by the messages - by mathieumg on 06-26-2006 at 12:13 PM
RE: Counter by the messages - by Ezra on 06-26-2006 at 12:32 PM
RE: Counter by the messages - by qgroessl on 06-26-2006 at 01:41 PM
RE: RE: Counter by the messages - by mathieumg on 06-26-2006 at 01:51 PM
RE: Counter by the messages - by qgroessl on 06-26-2006 at 01:53 PM
RE: Counter by the messages - by Ezra on 06-26-2006 at 02:11 PM
RE: Counter by the messages - by qgroessl on 06-26-2006 at 04:35 PM
RE: RE: Counter by the messages - by CookieRevised on 06-27-2006 at 01:57 PM
RE: Counter by the messages - by Voldemort on 06-26-2006 at 04:48 PM
RE: Counter by the messages - by qgroessl on 06-26-2006 at 05:47 PM
RE: Counter by the messages - by Thargor on 06-26-2006 at 06:09 PM
RE: Counter by the messages - by qgroessl on 06-26-2006 at 07:52 PM
RE: Counter by the messages - by Thargor on 06-27-2006 at 10:13 AM
RE: Counter by the messages - by The_Joker on 06-27-2006 at 01:02 PM
RE: Counter by the messages - by qgroessl on 06-27-2006 at 03:30 PM
RE: Counter by the messages - by Thargor on 06-27-2006 at 06:26 PM
RE: Counter by the messages - by Ezra on 06-27-2006 at 06:35 PM
RE: Counter by the messages - by John Anderton on 06-27-2006 at 06:37 PM


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