Shoutbox

Automatically accept new contact in contact list - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Skype & Live Messenger (/forumdisplay.php?fid=10)
+----- Thread: Automatically accept new contact in contact list (/showthread.php?tid=66498)

Automatically accept new contact in contact list by paul_a on 09-21-2006 at 12:17 PM

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


RE: Automatically accept new contact in contact list by Ezra on 09-21-2006 at 12:47 PM

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.


RE: Automatically accept new contact in contact list by paul_a on 09-21-2006 at 01:02 PM

but by doing this you will not appear on my list if you add me. But I will be on your list.


RE: Automatically accept new contact in contact list by Ezra on 09-21-2006 at 01:06 PM

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.
RE: Automatically accept new contact in contact list by Felu on 09-21-2006 at 01:40 PM

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? ;)


RE: Automatically accept new contact in contact list by matty on 09-21-2006 at 02:41 PM

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.


RE: Automatically accept new contact in contact list by paul_a on 09-22-2006 at 10:07 AM

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.


RE: Automatically accept new contact in contact list by markee on 09-22-2006 at 10:16 AM

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.