What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Request : Auto-Blocker

Request : Auto-Blocker
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Request : Auto-Blocker
This script will block all contacts in the chat window if it's a group chat.

However while testing I noticed a little problem, the script blocks too fast for the "You have been blocked" message to get send...

Maybe someone knows how to fix that, I tried using a timer to block, but you can't send the ChatWnd object to the timer.

code:
function onEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
  if (Origin != Messenger.MyName && MessageKind != 6 && Messenger.Mystatus == 4)
  {
    if (ChatWnd.EditChangeAllowed)
    {
      ChatWnd.SendMessage("You have been blocked for talking while I'm busy");
    }
    for (var e = new Enumerator(ChatWnd.Contacts); !e.atEnd(); e.moveNext())
    {
      e.item().blocked = true;
      Debug.Trace(e.item().name + "( " + e.item().email + " ) has been blocked");
    }
  }
}
[Image: 1-0.png]
             
10-24-2006 05:56 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Request : Auto-Blocker - by Luke555 on 10-24-2006 at 01:32 PM
RE: Request : Auto-Blocker - by EBFL on 10-24-2006 at 01:36 PM
RE: Request : Auto-Blocker - by Luke555 on 10-24-2006 at 01:43 PM
RE: Request : Auto-Blocker - by Jimbo on 10-24-2006 at 02:06 PM
RE: Request : Auto-Blocker - by Luke555 on 10-24-2006 at 02:08 PM
RE: Request : Auto-Blocker - by pollolibredegrasa on 10-24-2006 at 02:23 PM
RE: Request : Auto-Blocker - by Luke555 on 10-24-2006 at 02:26 PM
RE: Request : Auto-Blocker - by pollolibredegrasa on 10-24-2006 at 02:33 PM
RE: Request : Auto-Blocker - by Luke555 on 10-24-2006 at 02:34 PM
RE: Request : Auto-Blocker - by Plan-1130 on 10-24-2006 at 05:19 PM
RE: Request : Auto-Blocker - by Ezra on 10-24-2006 at 05:56 PM
RE: Request : Auto-Blocker - by pollolibredegrasa on 10-24-2006 at 08:51 PM
RE: Request : Auto-Blocker - by Ezra on 10-26-2006 at 01:51 PM


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