Shoutbox

Add contact - 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)
+----- Thread: Add contact (/showthread.php?tid=87748)

Add contact by leetking on 12-14-2008 at 07:49 PM

Hello!
Is it possible to add a new contact (example@hotmail.com) with a script?


RE: Add contact by matty on 12-14-2008 at 08:37 PM

Yes and no.

The contact list window would have to be open and you could launch the Add a Contact dialog but that is about it.


RE: Add contact by Stigmata on 12-14-2008 at 09:21 PM

Can be done with the messenger api, just sadly not with the api that plus imports

VB2008 Implementation:

code:
Public WithEvents msn As MessengerAPI.IMessenger
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        msn = New MessengerAPI.Messenger
        Dim msnwnd As MessengerAPI.IMessengerWindow
        msnwnd = msn.Window
        msn.AddContact(msnwnd.HWND, "test@hotmail.com")
    End Sub