Shoutbox

Get contact email from open chat window - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Get contact email from open chat window (/showthread.php?tid=63431)

Get contact email from open chat window by GibsonDude on 07-17-2006 at 10:20 AM

How would I go about storing the email address of an open chat contact in a variable?


RE: Get contact email from open chat window by ddunk on 07-17-2006 at 10:22 AM

You'd need to use ChatWnd.Contacts.
See: http://m00.cx/mpl/docs/index.html?page=ref-chatwnd-contacts.htm
and
http://m00.cx/mpl/docs/index.html?page=ref-contacts-iterator.htm

But replace  "Messenger.MyContacts" with "ChatWnd.Contacts"


RE: Get contact email from open chat window by GibsonDude on 07-17-2006 at 10:27 AM

Thanks dude!...

I might actually get around to reading the Docs sometime :S


RE: Get contact email from open chat window by markee on 07-17-2006 at 10:29 AM

Try this, it's what I use.

code:
var ChatWndContacts = ChatWnd.Contacts;
  if(ChatWndContacts.Count == 1)
  {
    var e = new Enumerator(ChatWndContacts);
    var Contact = e.item();
   
    Contact.Email

<-----------------{other commands go here}------------->

}

EDIT: looks like I was beaten to it :P