What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HELP - Email from OnEvent_ChatWndReceiveMessage!

HELP - Email from OnEvent_ChatWndReceiveMessage!
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: HELP - Email from OnEvent_ChatWndReceiveMessage!
JScript code:
function OnEvent_ChatWndReceiveMessage(obj,orig,msg,k) {
    var Emails = new Array();
    var OriginEmail = "";
    for(var e = new Enumerator(obj.Contacts); !e.atEnd(); e.moveNext()) {
        Emails.push(e.item().Email);
        if(e.item().Name == orig)OriginEmail = e.item().Email;
    }
}


i guess that will work :P

note: it won't work with contacts that have the same name

edit: if you want to limit it to only a one-on-one conversation, just check if obj.Contacts.count == 1

This post was edited on 05-14-2009 at 08:09 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
05-14-2009 08:06 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
HELP - Email from OnEvent_ChatWndReceiveMessage! - by whiz on 05-14-2009 at 07:16 PM
RE: HELP - Email from OnEvent_ChatWndReceiveMessage! - by SmokingCookie on 05-14-2009 at 07:44 PM
RE: HELP - Email from OnEvent_ChatWndReceiveMessage! - by whiz on 05-14-2009 at 07:56 PM
RE: HELP - Email from OnEvent_ChatWndReceiveMessage! - by matty on 05-14-2009 at 08:03 PM
RE: HELP - Email from OnEvent_ChatWndReceiveMessage! - by Jesus on 05-14-2009 at 08:04 PM
RE: HELP - Email from OnEvent_ChatWndReceiveMessage! - by roflmao456 on 05-14-2009 at 08:06 PM
RE: HELP - Email from OnEvent_ChatWndReceiveMessage! - by whiz on 05-14-2009 at 08:10 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