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:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Origin to email?
quote:
Originally posted by cloudhunter
It does exactly what you want. When it receives an origin, it looks for the people in the chat window, and finds out the email address. Saves iterating through all the Contacts.
which will only work when there is only 1 contact in the chat though, and which you need to explicitly check on or you might end up with the wrong contact.

Also you need to check if the message doesn't come from yourself. eg: if you explicitly use what Matty posted you can end up with the contact's email, while the message was actually being send by you..

------

Robin4286

quote:
Originally posted by Robin4286
Well thats not really accomplishing what I am trying to do. What I want to do is return who sent the email, not who is in the conversation.
it is exactly what you need as you need to know who is in the conversation to check the Origin (the name) against.

So with what Matty showed, you can easly iterate thru all the contacts and getting their name and comparing it to the origin.

If there is only one contact, the iteration will be extremely short (1), if there are more than one contact, the iteration would still be short (compared to checking your whole contactlist)...


So what you need to make this:
- the code from Matty and how to iterate thru the contacts in the chat window (which is exactly what he showed).
- comparing their Name with the Origin parameter
- if a match occurs, get the email from that contact

This post was edited on 09-16-2006 at 04:39 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-16-2006 04:32 AM
Profile PM 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