What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Remove user from multi-conversation

Pages: (2): « First « 1 [ 2 ] Last »
[Request] Remove user from multi-conversation
Author: Message:
lopardo
Veteran Member
*****


Posts: 1395
Reputation: 33
37 / Male / Flag
Joined: Nov 2002
Status: Away
RE: [Request] Remove user from multi-conversation
quote:
Originally posted by Matty
If you want to get out of the conversation type .pif

It will say you have network troubles and kick everyone out.

That doesn't seem to work like that anymore, it just kicks *you* out now.
[Image: userbar452797dd.gif]
06-25-2006 05:38 PM
Profile PM Find Quote Report
Flatron
New Member
*


Posts: 10
Joined: Dec 2005
RE: [Request] Remove user from multi-conversation
If you have a fast upload bandwidth, you can write a script, which floods the user's port, and the connection will be lost because of timeout. :D
06-25-2006 05:41 PM
Profile E-Mail PM Find Quote Report
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: RE: [Request] Remove user from multi-conversation
quote:
Originally posted by Owl
The documentation doesn't seem to give any easy way to leave a chat (probably quite easy to work around, just close the window one way or another), or to invite people into a chat window (could be harder to work around)

I'm hoping the future will bring a bigger toolkit for use with MPL scripts;)

Owl


Closing a chat window is simple.

code:
Interop.Call("User32", "SendMessageW", pChatWnd.Handle, 0x10, 0, 0);

Note that 0x10 is WM_CLOSE, and pChatWnd is the ChatWnd object.
The previous sentence is false. The following sentence is true.
06-25-2006 06:15 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Request] Remove user from multi-conversation
code:
function OnEvent_ChatWndCreated(pChatWnd){
    if (pChatWnd.Contacts.Count != 1){
        if (Interop.Call('user32', 'MessageBoxW', pChatWnd.Handle, 'Exit multi-user conversation?', 'Exit :', 36) == 6){
            Interop.Call('user32', 'SendMessageW', pChatWnd.Handle, 0x10, 0, 0);
        }
    }
}

This post was edited on 06-25-2006 at 07:37 PM by matty.
06-25-2006 07:14 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« 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