What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Skype & Live Messenger » Automatically accept new contact in contact list

Automatically accept new contact in contact list
Author: Message:
paul_a
Junior Member
**


Posts: 17
Joined: Aug 2006
O.P. Automatically accept new contact in contact list
hello all,

I'm writing a new plug in Windows Live Messenger. I finished a plug in that detects requests for voice/video converstion.

Now what I'm trying to do is to have a plug in that automatically adds a contact to your contact list.
for example if someone wants to add me to his contact list I want MSN to automatically accepet this request without having to manually click on "allow this person to contact me....".

Is there a way to do that? I was thinking of getting the handle of the message box that pops up when someone adds you and trying to simulate an ENTER key press. But I have been unable to get a HANDLE.

Can someone point me in the right direction? any help would be appreciated.

Thank you
09-21-2006 12:17 PM
Profile E-Mail PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Automatically accept new contact in contact list
You can disable the privacy checkbox

[Image: attachment.php?pid=732100]

That will cause the "accept this user" dialog not top show up. So no need for a script to do it.

.png File Attachment: checkbox.PNG (11.4 KB)
This file has been downloaded 378 time(s).
[Image: 1-0.png]
             
09-21-2006 12:47 PM
Profile PM Web Find Quote Report
paul_a
Junior Member
**


Posts: 17
Joined: Aug 2006
O.P. RE: Automatically accept new contact in contact list
but by doing this you will not appear on my list if you add me. But I will be on your list.
09-21-2006 01:02 PM
Profile E-Mail PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Automatically accept new contact in contact list
quote:
Originally posted by paul_a
but by doing this you will not appear on my list if you add me. But I will be on your list.

Add them with a script once they've sent you a message.
[Image: 1-0.png]
             
09-21-2006 01:06 PM
Profile PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Automatically accept new contact in contact list
Instead of adding them with a script use this -
quote:
Originally posted by Sunshine
quote:
Originally posted by icepick66
and finaly do you know how to auto accept added contacts?
I believe unticking the 2 (esp. last one, first is to allow messaging you if they are not on your list) shown in the picture below will do that.

[Image: attachment.php?pid=717758]

If you don't want to be notified then it's auto accept right? ;)

09-21-2006 01:40 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Automatically accept new contact in contact list
There is a way to do it and I will give it a shot tonight. The way is basically search for all windows with a specific classname and figure out if its the AddContact window. Since you cant use EnumWindows thats the only way to do it.
09-21-2006 02:41 PM
Profile E-Mail PM Find Quote Report
paul_a
Junior Member
**


Posts: 17
Joined: Aug 2006
O.P. RE: Automatically accept new contact in contact list
Thanks for your replies.

but I would like to do it programatically.
one way would be to open the option window programmatically, then simulate Keyboard strokes to uncheck the check boxes. i.e simulate down arraow presses, tab presses, ENTER presses etc....

but this solution is very unreliable since two things can go wrong:
1- the series key strokes can change if MSN releases a new version.
2- there is no way to know if the check box is already unchecked.

Another solution would be to do like Matty said. But the AddContact window is a dialog box.  I used Spy++  and saw that this window doesn't have a name... I don't know if I'm wrong about this..

Anyway

if anyone has another suggestion plz tell.

09-22-2006 10:07 AM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Automatically accept new contact in contact list
Surely it is possible to get the lists of people who have you added to their contact list and compare that to your allow and blocked lists and then any extras could come up when checked into some kind of window so you can accept or reject them easily (add or block).  This idea will also then work for everyone else prior to the introduction of the script.  I would try this except it is far beyond my knowledge of scripting but I'm quite sure it is possible to do.
[Image: markee.png]
09-22-2006 10:16 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