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.