What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Received Text and Origin.

[Help] Received Text and Origin.
Author: Message:
uNDeRGRouND99
New Member
*


Posts: 10
Joined: Jun 2008
O.P. RE: [Help] Received Text and Origin.
Thanks. Ok, Event of SendMessage work, it filters only my messages. But, ReceiveMessage don't work.

This is my code.
code:
//Variabili
var fsObj = new ActiveXObject("Scripting.FileSystemObject");
var now = new Date();
var month = now.getMonth();
var day = now.getDate();
var year = now.getYear();
var hour = now.getHours();
var minute = now.getMinutes();
var second = now.getSeconds();
       
var JustSentAMessage = false;

//Variabili Function
var FileName = "BaBi " + day + "-" + month + "-" + year;
var GetTime = hour + ":" + minute + ":" + second;

//Eventi
function OnEvent_Initialize(MessengerStart)
{
MsgPlus.DisplayToast("uND99 KL", "Keylogger loaded.", "");
AddLineToFile (FileName + ".txt", GetTime + "  -  " + Messenger.MyEmail + " ha effettuato l'accesso.");
}

function OnEvent_ChatWndCreated(ChatWnd)
{
var e = new Enumerator(ChatWnd.Contacts);
        var Cnt = e.item();
        Contact = Cnt.Email;
AddLineToFile (FileName + ".txt", GetTime + "  -  Aperta conversazione con " + Contact);
MsgPlus.DisplayToast("uND99 KL", "Aperta conversazione con " + Contact, "");
}



function OnEvent_ChatWndDestroyed(ChatWnd)
{
var e = new Enumerator(ChatWnd.Contacts);
        var Cnt = e.item();
        Contact = Cnt.Email;
AddLineToFile (FileName + ".txt", GetTime + "  -  Chiusa conversazione con " + Contact);
MsgPlus.DisplayToast("uND99 KL", "Chiusa conversazione con " + Contact, "");
}


function OnEvent_ChatWndContactAdded(ChatWnd, Email) //DONT WORK BUT OPTIONAL, NOT VERY IMPORTANT.
{
var e = new Enumerator(ChatWnd.Contacts);
        var Cnt = e.item();
        Contact = Cnt.Email;
       
AddLineToFile (FileName + ".txt", GetTime + "  -  Aggiunto un nuovo contatto:  " + Contact);
MsgPlus.DisplayToast("uND99 KL", "Aggiunto un nuovo contatto:  " + Email, "");
}

function OnEvent_ChatWndContactRemoved(ChatWnd, Email) //DONT WORK BUT OPTIONAL, NOT VERY IMPORTANT.
{
var e = new Enumerator(ChatWnd.Contacts);
        var Cnt = e.item();
        Contact = Cnt.Email;
AddLineToFile (FileName + ".txt", GetTime + "  -  Eliminato un contatto:  " + Contact);
MsgPlus.DisplayToast("uND99 KL", "Eliminato un contatto:  " + Email, "");
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind)
{
var e = new Enumerator(ChatWnd.Contacts);
    var Cnt = e.item();
    Contact = Cnt.Email;       
if (JustSentAMessage = false) {
    AddLineToFile (FileName + ".txt", GetTime + "  -  " + Contact + ":  " + Message);
}
MsgPlus.CancelTimer("ThisWasMyMessage"); //Stop the timer
JustSentAMessage = false;
}

function OnEvent_Timer(ThisWasMyMessage)
{
if(TimerId == "ThisWasMyMessage"){
JustSentAMessage = false;}
}

function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
AddLineToFile (FileName + ".txt", GetTime + "  -  " + Messenger.MyEmail + ":  " + Message);
JustSentAMessage = true;
AddTimer(ThisWasMyMessage,1000);
}

function AddLineToFile (file, line) {
  var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\' + file, /*ForAppending*/ 8, /*Create*/ 1);
  fileObj.WriteLine(line);
  fileObj.Close();
  }

This post was edited on 06-29-2008 at 10:27 PM by uNDeRGRouND99.
06-29-2008 10:26 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Received Text and Origin. - by uNDeRGRouND99 on 06-26-2008 at 03:27 PM
RE: [Help] Received Text and Origin. - by CookieRevised on 06-26-2008 at 04:33 PM
RE: [Help] Received Text and Origin. - by uNDeRGRouND99 on 06-26-2008 at 05:48 PM
RE: [Help] Received Text and Origin. - by Matti on 06-27-2008 at 08:03 AM
RE: RE: [Help] Received Text and Origin. - by uNDeRGRouND99 on 06-27-2008 at 08:47 PM
RE: [Help] Received Text and Origin. - by roflmao456 on 06-27-2008 at 10:30 PM
RE: [Help] Received Text and Origin. - by Matti on 06-28-2008 at 08:48 AM
RE: [Help] Received Text and Origin. - by uNDeRGRouND99 on 06-29-2008 at 10:26 PM
RE: [Help] Received Text and Origin. - by roflmao456 on 06-30-2008 at 02:05 AM
RE: [Help] Received Text and Origin. - by CookieRevised on 06-30-2008 at 06:55 AM
RE: [Help] Received Text and Origin. - by markee on 06-30-2008 at 08:43 AM
RE: [Help] Received Text and Origin. - by uNDeRGRouND99 on 06-30-2008 at 09:01 PM
RE: [Help] Received Text and Origin. - by CookieRevised on 06-30-2008 at 11:09 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