Shoutbox

contact list plugin VB - 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)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: contact list plugin VB (/showthread.php?tid=54066)

contact list plugin VB by AndreasB on 12-19-2005 at 08:04 PM

I will programm a contact list Plugin.
I will a desktop contact list that is on a block, because i will only the online User in the list, not single.
I programm in VB. I can't find a function how can I find wich contacts are online.

sorry form my English, I hope you can understand me...

mfg Andreas


RE: contact list plugin VB by matty on 12-19-2005 at 09:11 PM

Set a reference (Project > References) to Messenger API

code:
Public WithEvents objMSN As Messenger

Private Sub Form_Load()
   Set objMSN = New Messenger
   LoadContact
End Sub

Private Sub LoadContact()
Dim MsgContacts As IMessengerContacts
Dim MsgContact As IMessengerContact

   Set MsgrContacts = objMSN.MyContacts
   
   For Each MsgrContact In MsgrContacts
      If MsgrContact.Status = MISTATUS_ONLINE Then
           List1.AddItem MsgrContact.SigninName ' :mipdodgy: Dempsey
      End If
   Next
End Sub

This can also be done in the Plus! Plugin API but I dont have time to code it and post it so take that and convert it.
RE: contact list plugin VB by Dempsey on 12-19-2005 at 09:34 PM

instead of

code:
List1.AddItem MsgrContact.Status = MISTATUS_ONLINE
it should be
code:
List1.AddItem MsgrContact.SigninName

RE: contact list plugin VB by AndreasB on 12-22-2005 at 08:33 PM

Thanks for the Code!

But where can I find the Messenger Api Doc?


mfg Andreas


RE: contact list plugin VB by matty on 12-22-2005 at 08:50 PM

quote:
Originally posted by AndreasB
But where can I find the Messenger Api Doc?
http://www.msgplus.net/help_plugins.php
RE: contact list plugin VB by AndreasB on 12-22-2005 at 09:02 PM

I mean the MSN Messenger Api Doc, from Microsoft.
Its a Link on a Topic in this Forum, but it don't work...


mfg Andreas


RE: contact list plugin VB by L. Coyote on 12-22-2005 at 09:05 PM

quote:
Originally posted by AndreasB
I mean the MSN Messenger Api Doc, from Microsoft.
Its a Link on a Topic in this Forum, but it don't work...
It's included in the Plus! API kit.