What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request]Chat invite blocker/notifier (might have been done)

[Request]Chat invite blocker/notifier (might have been done)
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: [Request]Chat invite blocker/notifier (might have been done)
done.. but no GUI (using win32 msgbox) .. a quick 5 minute script :zippy:

Tested and works (Y)
code:
var max = 8; // Automatically block incoming multi-conversations if number of participants exceeds this number. 0 to disable.
var blockall = false; // Block all incoming multi-conversations.

function OnEvent_ChatWndCreated(ChatWnd){
    if(ChatWnd.Contacts.Count < 2) return;
    Debug.Trace("Multi-conversation detected.");
    if((ChatWnd.Contacts.Count > max && max > 1) || blockall){
        Interop.Call('User32', 'PostMessageW', ChatWnd.Handle, 0x0111,  20001, 0x0000);
        Debug.Trace("A multi-conversation was blocked. Reason: Exceeded variable max");
        } else {
        Debug.Trace("Building participant list...");
        var participants = "";
        for(var e = new Enumerator(ChatWnd.Contacts);!e.atEnd();e.moveNext()){
            participants += "- " + MsgPlus.RemoveFormatCodes(e.item().Name) + " (" + e.item().Email + ")\n";
            }
        if(Interop.Call('User32', 'MessageBoxW', ChatWnd.Handle, 'An incoming multi-conversation was detected.\nList of participants:\n' + participants + 'Would you like to participate?', 'Multi Convo Blocker', 68) == 7){
            Interop.Call('User32', 'PostMessageW', ChatWnd.Handle, 0x0111,  20001, 0x0000);
            }
        }
    }

just edit the top options ;)

This post was edited on 08-27-2008 at 04:27 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
08-27-2008 04:27 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request]Chat invite blocker/notifier (might have been done) - by Dex Luther on 08-27-2008 at 03:37 AM
RE: [Request]Chat invite blocker/notifier (might have been done) - by roflmao456 on 08-27-2008 at 04:27 AM
RE: [Request]Chat invite blocker/notifier (might have been done) - by Dex Luther on 08-27-2008 at 04:50 AM
RE: [Request]Chat invite blocker/notifier (might have been done) - by prashker on 08-27-2008 at 04:57 AM
RE: RE: [Request]Chat invite blocker/notifier (might have been done) - by Dex Luther on 08-27-2008 at 04:59 AM
RE: [Request]Chat invite blocker/notifier (might have been done) - by prashker on 08-27-2008 at 05:15 AM
RE: [Request]Chat invite blocker/notifier (might have been done) - by CookieRevised on 08-27-2008 at 08:32 AM
RE: RE: [Request]Chat invite blocker/notifier (might have been done) - by Dex Luther on 08-28-2008 at 04:42 AM
RE: [Request]Chat invite blocker/notifier (might have been done) - by Basilis on 08-27-2008 at 12:26 PM
RE: [Request]Chat invite blocker/notifier (might have been done) - by CookieRevised on 08-28-2008 at 04:59 AM


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