Shoutbox

Question: AddContact & RemoveContact - 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: Question: AddContact & RemoveContact (/showthread.php?tid=84684)

Question: AddContact & RemoveContact by rsabin on 07-05-2008 at 07:00 PM

Hello,

I am making a script that reads a file full of emails and Add or Remove contacts from my contact list.

I've tried this:

code:
//Add contact
oMsnAPI = new ActiveXObject("Messenger.UIAutomation.1");
oMsnAPI.AddContact(0,"test@test.com");

//Remove contact
oMsnAPI = new ActiveXObject("Messenger.UIAutomation.1");
oMsnAPI.RemoveContact(0,"test@test.com");


I think the problem is the object creation.
I've tried this also:
code:
oMsnAPI = new ActiveXObject("Messenger.UIAutomation");


Any help?
Thanks
RE: Question: AddContact & RemoveContact by matty on 07-07-2008 at 04:46 PM

CookieRevised's reply to Messanger API

This may be of some help.


RE: RE: Question: AddContact & RemoveContact by rsabin on 07-07-2008 at 06:37 PM

Thanks Matty,

quote:
Originally posted by matty
CookieRevised's reply to Messenger API
I see.
So, it's true that I uninstalled Windows Messenger from my computer and now the MessengerAPI doesn't work anymore.

Well, but I just realize that MessengerAPI don't have a RemoveContact() function. So, even if I solve this problem, still don't know how to remove a contact from my contact list.

The main question is: how to add and remove contacts from Windows Live Messenger with scripts?
RE: Question: AddContact & RemoveContact by matty on 07-07-2008 at 07:38 PM

quote:
Originally posted by rsabin
Thanks Matty,
quote:
Originally posted by matty
CookieRevised's reply to Messenger API
I see.
So, it's true that I uninstalled Windows Messenger from my computer and now the MessengerAPI doesn't work anymore.

Well, but I just realize that MessengerAPI don't have a RemoveContact() function. So, even if I solve this problem, still don't know how to remove a contact from my contact list.

The main question is: how to add and remove contacts from Windows Live Messenger with scripts?
It isn't possible since this isn't something that has been added into the Scripting API. Unless you write something to send information to the protocol to remove the contact other then that it isn't possible