What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Am i Right to assume that MPPLUGIN_RETURN_BOOL Initialize will give me the names....

Am i Right to assume that MPPLUGIN_RETURN_BOOL Initialize will give me the names....
Author: Message:
TrevorP
New Member
*


Posts: 6
Joined: Nov 2004
O.P. Am i Right to assume that MPPLUGIN_RETURN_BOOL Initialize will give me the names....
Of all my users emails....I would like to be able to list them somewhere...or rather a "current" list...

11-28-2004 01:50 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: Am i Right to assume that MPPLUGIN_RETURN_BOOL Initialize will give me the names....
Do you mean the emails of who ever is using the plugin, or the emails of the people added?
If it is the address of the person using the plugin then the Initialize funtion returns it.
If its the emails of the people that have added you then you have to use the messenger API
11-28-2004 02:12 PM
Profile PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Am i Right to assume that MPPLUGIN_RETURN_BOOL Initialize will give me the names.
in VB6 then make a form with 1 list box and add the following code
in declarations:
quote:
Public WithEvents msn As MessengerAPI.Messenger
and then in the main part of the code add this:
quote:
Private Sub Form_Load()
Set msn = New MessengerAPI.Messenger
Dim msncontact As IMessengerContact
Dim msncontacts As IMessengerContacts
Set msncontacts = msn.MyContacts
For Each msncontact In msncontacts
List1.AddItem (msncontact.SigninName)
Next
End Sub

EDIT: forgot to mention you need to reference the Messenger API Type Library or this wont work :p

in VB6 Project > References > and tick Messenger API Type Library

This post was edited on 11-28-2004 at 02:32 PM by Eljay.
11-28-2004 02:18 PM
Profile PM Find Quote Report
TrevorP
New Member
*


Posts: 6
Joined: Nov 2004
O.P. RE: Am i Right to assume that MPPLUGIN_RETURN_BOOL Initialize will give me the names....
ummm ok yeah i'm trying to list my current contact list to a file...and i use c++ not VB6...umm i've been reading the  messenger API Help file...and i think i see what i need i'm just gonna go see if i can get it working
11-28-2004 02:41 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Am i Right to assume that MPPLUGIN_RETURN_BOOL Initialize will give me the names....
TrevorP, just to make sure (in case you only want to export the list and aren't making this for something else): You do know that, in MSN Messenger, you can simply export your contactlist to a file?
In MSN Messenger go to the menu Contacts > Save contact List

If so, just ignore this post and carry on ;)
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-29-2004 03:38 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