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:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Counter by the messages
Kinda useless, but I did it anyway :P

Don't know how good it will work...

On import/restart of the script it makes an Registry key and it adds 1 everytime a message is send and includes the number in front of the message...

code:
function OnEvent_Initialize(MessengerStart)
{
  if (MessengerStart == false)
  {
    WriteRegistry("MessagesSend", "0");
  }
}

function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
  value = ReadRegistry("MessagesSend");
  WriteRegistry("MessagesSend", (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);
}


[Image: 1-0.png]
             
06-26-2006 10:26 AM
Profile PM Web 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