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

Pages: (2): « First « 1 [ 2 ] Last »
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
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: Request : Auto-Blocker
My attempt...
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
10-24-2006 08:51 PM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Request : Auto-Blocker
I also tried something :-)

Features a exclude list, and a blocked users list or automatic unblock.

I tested it, and it works, but I don't really have plsc pack for it yet, will make one soon.

http://code.google.com/p/busyblocker << The Project page.

EDIT: Added the plsc pack, you can find it in the repository in the trunk directory.

This post was edited on 10-26-2006 at 02:06 PM by Ezra.
[Image: 1-0.png]
             
10-26-2006 01:51 PM
Profile PM Web 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