Shoutbox

[Help: Events] OnEvent_AddContact (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: [Help: Events] OnEvent_AddContact (Add Contact)? (/showthread.php?tid=73780)

[Help: Events] OnEvent_AddContact (Add Contact)? by XP1 on 04-20-2007 at 08:08 PM

Is there an OnEvent_AddContact I can use?

I'm trying to delete a contact automatically when a person adds someone in my email blacklist.


RE: [Help: Events] OnEvent_AddContact (Add Contact)? by deAd on 04-20-2007 at 08:54 PM

No, there isn't.


RE: RE: [Help: Events] OnEvent_AddContact (Add Contact)? by XP1 on 04-20-2007 at 08:57 PM

quote:
Originally posted by deAd
No, there isn't.

Can it be manually created or circumvented with other code?
RE: RE: RE: [Help: Events] OnEvent_AddContact (Add Contact)? by deAd on 04-20-2007 at 09:04 PM

quote:
Originally posted by XP1
quote:
Originally posted by deAd
No, there isn't.

Can it be manually created or circumvented with other code?

A contact status change event or signin event might occur when they first show online after you add them.

Unfortunately, you cannot delete contacts with Plus!.
RE: RE: RE: RE: [Help: Events] OnEvent_AddContact (Add Contact)? by XP1 on 04-20-2007 at 11:48 PM

quote:
Originally posted by deAd
quote:
Originally posted by XP1
quote:
Originally posted by deAd
No, there isn't.

Can it be manually created or circumvented with other code?

A contact status change event or signin event might occur when they first show online after you add them.

Unfortunately, you cannot delete contacts with Plus!.

Know (if) when this feature will be implemented or (if) I can get someone to build it into Messenger Live Plus! as a new feature?

I'm waiting for OnEvent_AddContact and OnEvent_DeleteContact. :)

Possible names include:
Add Contact:
OnEvent_AddContact
OnEvent_ContactAdd
OnEvent_ContactAdded
OnEvent_NewContact
OnEvent_ContactNew

Delete Contact:
OnEvent_DeleteContact
OnEvent_ContactDelete
OnEvent_ContactDeleted
OnEvent_RemoveContact
OnEvent_ContactRemove
OnEvent_ContactRemoved
RE: [Help: Events] OnEvent_AddContact (Add Contact)? by markee on 04-21-2007 at 12:27 AM

There isn't much use for either of those in most scripts and there are many other things that would be of more use.  I'm sorry to say but if your feature does get put in then i believe it will not be any time soon.


RE: [Help: Events] OnEvent_AddContact (Add Contact)? by roflmao456 on 04-21-2007 at 04:41 AM

people might implement their own msn so it automatically adds them :sad:


it can also be used to destroy your contact list :cry:


RE: RE: [Help: Events] OnEvent_AddContact (Add Contact)? by XP1 on 04-30-2007 at 05:21 AM

quote:
Originally posted by roflmao456
people might implement their own msn so it automatically adds them :sad:


it can also be used to destroy your contact list :cry:

I suppose contact lists could be destroyed if the delete contact feature was implemented, but I was specifically asking for the "OnEvent" of that happening, so contact lists aren't actually going to be destroyed.
RE: [Help: Events] OnEvent_AddContact (Add Contact)? by matty on 04-30-2007 at 05:47 AM

This can be done using the Xniff ActiveXControl.

You need to listen for the RML packet

This is being sent from the Client to the Server

quote:
RML 24 67\r\n
<ml><d n="domain.com"><c n="username" l="1" t="1"/> </d></ml>

The server responds with:
quote:
RML 24 OK\r\n

Once you receive the last packet then the server has removed the contact from the list.

Adding of contacts is very similar.

This is being sent from the Client to the Server
quote:
ADL 29 67\r\n
<ml><d n="domain.com"><c n="username" l="1" t="1"/> </d></ml>

The server responds with:
quote:
ADL 29 OK\r\n

However this is more and I am not sure what its for:

This is being sent from the Client to the Server
quote:
FQY 30 61\r\n
<ml l="2"><d n="domain.com"><c n="username" l="1" t="1"/> </d></ml>

The server responds with:
quote:
ADL 30 56\r\n
<ml><d n="domain.com"><c n="username" l="1" t="1"/> </d></ml>

RE: RE: [Help: Events] OnEvent_AddContact (Add Contact)? by XP1 on 04-30-2007 at 05:52 AM

quote:
Originally posted by Matty
This can be done using the Xniff ActiveXControl.

You need to listen for the RML packet

This is being sent from the Client to the Server
quote:
RML 24 67\r\n
<ml><d n="domain.com"><c n="username" l="1" t="1"/> </d></ml>

The server responds with:
quote:
RML 24 OK\r\n

Once you receive the last packet then the server has removed the contact from the list.

I didn't capture any packets for adding so I am not sure about that one I don't really have time to do it.

"Warning: if your script uses this, it may become unstable/useless if MSN changes protocol ! So be very carefull!" - I don't know about that.

Do you think it's easier to get OnEvent_Add/Delete implemented?
RE: [Help: Events] OnEvent_AddContact (Add Contact)? by matty on 04-30-2007 at 06:10 AM

They just recently changed to the new protocol with Windows Live Messenger, I can't imagine them changing it again.