What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » finding contacts' emails

finding contacts' emails
Author: Message:
Stuffed
New Member
*


Posts: 4
Joined: Apr 2005
O.P. finding contacts' emails
hi

i've already played a bit with the plugin sample given by patchou,  but still, there are things i can't figure out.

i'm looking for a way, in the ReceiveNotify event, to obtain both the user e-mail, and the e-mail of the contact that sent the message.

it looks like the sContactName provide the friendly name of the contact, but it doesn't give me his e-mail.

btw, i can't use the (!M) and (!MP) since VB wouldn't understand them.

oh, yeah, i forgot, i'm using VB :). thx for the help.
04-30-2005 08:47 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: finding contacts' emails
you can get the email address of all users in the conversation using the Messenger API.

You can use the oMessenger object sent in the Initalise event.

let me know if you want some code to help, I have it somewhere
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
04-30-2005 08:48 PM
Profile E-Mail PM Web Find Quote Report
Stuffed
New Member
*


Posts: 4
Joined: Apr 2005
O.P. RE: finding contacts' emails
yeah, a piece of code would be welcome :). thx
04-30-2005 08:57 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: finding contacts' emails
At the top of your class module:
code:
Private WithEvents MSN As MessengerAPI.Messenger

In Initalise event:
code:
Set MSN = New oMessenger

At bottom of class module:
code:
Private Sub MSN_OnIMWindowCreated(ByVal pIMWindow As Object)
    Dim MSNCont As IMessengerContact
    Dim MSNConvo As IMessengerConversationWnd
    Set MSNConvo = pIMWindow
    For Each MSNCont In MSNConvo.Contacts
        MsgBox "Friendly Name: " & MSNCont.FriendlyName & vbCrLf & vbCrLf & "Signin Name: " & MSNCont.SigninName
    Next
End Sub
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
04-30-2005 09:03 PM
Profile E-Mail PM Web Find Quote Report
Stuffed
New Member
*


Posts: 4
Joined: Apr 2005
O.P. RE: finding contacts' emails
thx man. :)

on last thing... what should i do to know who of all the e-mails is the user? should i make a variable which takes the content of sUserEmail in the Initialize function? or is there a more simple way?
04-30-2005 09:13 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: finding contacts' emails
hmm i just the code and it only returns the other people in the conversation, not yourself, so you'll have to use sUserEmail to get yor own email.
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
04-30-2005 09:15 PM
Profile E-Mail PM Web Find Quote Report
Stuffed
New Member
*


Posts: 4
Joined: Apr 2005
O.P. RE: finding contacts' emails
ok, thanks a lot :)
04-30-2005 09:29 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: finding contacts' emails
np :)

If you need anymore help with the plugin let us know
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
04-30-2005 09:38 PM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: finding contacts' emails
quote:
Originally posted by Stuffed
i'm looking for a way, in the ReceiveNotify event, to obtain both the user e-mail, and the e-mail of the contact that sent the message.
There should be an Object argument in ReceiveNotify: this is the interface to the conversation window IIRC. I do my development in C++, so I'm a little rusty in my VB.
[Image: spartaafk.png]
05-01-2005 12:15 PM
Profile PM Web 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