What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How can I found out who (email) sent the msg/received the msg?

How can I found out who (email) sent the msg/received the msg?
Author: Message:
leetking
New Member
*


Posts: 10
– / Female / Flag
Joined: Dec 2008
O.P. How can I found out who (email) sent the msg/received the msg?
Hello,
Is there any possible solution for finding out who sent the message and who received a message?

(in a normal conversation; I want the email adress.)


I want something like:

code:
function OnEvent_ChatWndSend [and receive] Message(ChatWnd, Origin, Message, MessageKind){
email_sent= [ need your help ;) ]
email_received= [ need your help ;) ]
}


Thank you!

This post was edited on 05-06-2009 at 08:29 PM by leetking.
05-06-2009 08:26 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How can I found out who (email) sent the msg/received the msg?
There aren't any really reliable ways of doing this. I say that because Messenger Plus! doesn't know what the email is only the name.

Now you can iterate through the ChatWnd.Contacts object
Javascript code:
for (var oContact = new Enumerator(ChatWnd.Contacts); !oContact.atEnd(); oContact.moveNext()){
    Debug.Trace(oContact.item().Email);
}

05-06-2009 10:50 PM
Profile E-Mail PM Find Quote Report
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
Joined: Aug 2004
RE: How can I found out who (email) sent the msg/received the msg?
quote:
Originally posted by matty
There aren't any really reliable ways of doing this. I say that because Messenger Plus! doesn't know what the email is only the name.

Now you can iterate through the ChatWnd.Contacts object
Javascript code:
for (var oContact = new Enumerator(ChatWnd.Contacts); !oContact.atEnd(); oContact.moveNext()){
    Debug.Trace(oContact.item().Email);
}


What if two contacts have the same name? Wouldn't that trigger on both of them?
[Image: msghelp.net.png]
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
05-07-2009 12:24 AM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: How can I found out who (email) sent the msg/received the msg?
quote:
Originally posted by Lou
What if two contacts have the same name? Wouldn't that trigger on both of them?
Yes, that's why matty said there aren't any really reliable way to achieve that.
05-07-2009 07:55 AM
Profile PM Web Find Quote Report
leetking
New Member
*


Posts: 10
– / Female / Flag
Joined: Dec 2008
O.P. RE: RE: How can I found out who (email) sent the msg/received the msg?
K! Thx guys! I got a new question: How can I save a variable so it will still be the same when I restart my PC / MSN?

For example:

var remember = "clean the toilet"

This post was edited on 05-07-2009 at 05:59 PM by leetking.
05-07-2009 05:38 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How can I found out who (email) sent the msg/received the msg?
quote:
Originally posted by leetking
K! Thx guys! I got a new question: How can I save a variable so it will still be the same when I restart my PC / MSN?

For example:

var remember = "clean the toilet"
Use an external file (txt, ini, xml or registry) and load it once the script starts next time.
05-07-2009 08:00 PM
Profile E-Mail PM Find Quote Report
leetking
New Member
*


Posts: 10
– / Female / Flag
Joined: Dec 2008
O.P. RE: RE: How can I found out who (email) sent the msg/received the msg?
quote:
Originally posted by matty
quote:
Originally posted by leetking
K! Thx guys! I got a new question: How can I save a variable so it will still be the same when I restart my PC / MSN?

For example:

var remember = "clean the toilet"
Use an external file (txt, ini, xml or registry) and load it once the script starts next time.

I dont know anything about this. Could you help me, please?
05-08-2009 03:27 PM
Profile E-Mail PM Find Quote Report
« 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