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

Origin to email?
Author: Message:
Deco
Full Member
***


Posts: 188
Reputation: 4
41 / Male / Flag
Joined: Aug 2006
RE: Origin to email?
Here's my two cents:

First off you need to compare the origin so that you don't get your own email since whenever you send a message you get a "message received" event with yourself as origin.

Secondly the code comparing Contact.name will only work if you don't have Nickname for that person. Since Contact.Name is what they use as name and Origin might be what you use as their nickname.

Thirdly this instead of getting the contacts from the chatwindow, gets the contacts from your contact list. Might be a little longer but it'll work when  you have more than one person in the chat window.

function GetContactEmail(Name) {
var Result = "";
var Contacts = Messenger.MyContacts;
    var e = new Enumerator(Contacts);
    for (;!e.atEnd();e.moveNext()) {
        var Contact = e.item();
        if(Contact.Name == Name) {
        Result = Contact.Email;
                }
    }
    return Result;
}

Just an idea :)

Have fun!
09-22-2006 09:59 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Origin to email? - by Robin4286 on 09-16-2006 at 02:46 AM
RE: Origin to email? - by matty on 09-16-2006 at 03:41 AM
RE: Origin to email? - by Robin4286 on 09-16-2006 at 03:57 AM
RE: Origin to email? - by cloudhunter on 09-16-2006 at 03:59 AM
RE: Origin to email? - by CookieRevised on 09-16-2006 at 04:32 AM
RE: Origin to email? - by markee on 09-16-2006 at 07:27 AM
RE: Origin to email? - by Robin4286 on 09-16-2006 at 06:25 PM
RE: Origin to email? - by R4000 on 09-16-2006 at 06:34 PM
RE: Origin to email? - by CookieRevised on 09-16-2006 at 10:50 PM
RE: Origin to email? - by markee on 09-22-2006 at 06:07 AM
RE: Origin to email? - by Deco on 09-22-2006 at 09:59 PM
RE: RE: Origin to email? - by CookieRevised on 09-22-2006 at 10:54 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