What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Get contact email from open chat window

Get contact email from open chat window
Author: Message:
GibsonDude
Junior Member
**


Posts: 19
Joined: Jul 2006
O.P. Get contact email from open chat window
How would I go about storing the email address of an open chat contact in a variable?
07-17-2006 10:20 AM
Profile E-Mail PM Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: Get contact email from open chat window
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"

This post was edited on 07-17-2006 at 10:22 AM by ddunk.
07-17-2006 10:22 AM
Profile E-Mail PM Web Find Quote Report
GibsonDude
Junior Member
**


Posts: 19
Joined: Jul 2006
O.P. RE: Get contact email from open chat window
Thanks dude!...

I might actually get around to reading the Docs sometime :S
07-17-2006 10:27 AM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
RE: Get contact email from open chat window
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

This post was edited on 07-17-2006 at 03:04 PM by markee.
[Image: markee.png]
07-17-2006 10:29 AM
Profile 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