What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Question: AddContact & RemoveContact

Question: AddContact & RemoveContact
Author: Message:
rsabin
New Member
*


Posts: 2
Joined: Jul 2008
O.P. Question: AddContact & RemoveContact
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

This post was edited on 07-05-2008 at 07:08 PM by rsabin.
07-05-2008 07:00 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Question: AddContact & RemoveContact
CookieRevised's reply to Messanger API

This may be of some help.
07-07-2008 04:46 PM
Profile E-Mail PM Find Quote Report
rsabin
New Member
*


Posts: 2
Joined: Jul 2008
O.P. RE: RE: Question: AddContact & RemoveContact
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?
07-07-2008 06:37 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Question: AddContact & RemoveContact
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
07-07-2008 07:38 PM
Profile E-Mail 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