What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Invisibility

[Request] Invisibility
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [Request] Invisibility
I don't think it's possibe to block people when signing out, cause the contact list is unavailable when the Signout Event occurs.

EDIT:

It is however possible to block everyone that is offline on signin, then after they come online, they are unblocked...

EDIT2: Added an unblocking routine of blocked persons that are online on signin.

But btw, this will also unblock blocked persons that are blocked for a reason (being annoying whatever)...

So maybe it should save in registry which persons are blocked by the script so that other blocked persons stay blocked??

code:
function OnEvent_ContactSignout(Email)
{
  var Contacts = Messenger.MyContacts;
  var Contact = Contacts.GetContact(Email);
  if (Contact.Blocked == false)
  {
    Contact.Blocked = true;
  }
}

function OnEvent_ContactSignin(Email)
{
  var Contacts = Messenger.MyContacts;
  var Contact = Contacts.GetContact(Email);
  if (Contact.Blocked)
  {
    Contact.Blocked = false;
  }
}

function OnEvent_SigninReady(Email)
{
  var Contacts = Messenger.MyContacts;
  var e = new Enumerator(Contacts);
  for(; !e.atEnd(); e.moveNext())
  {
    var Contact = e.item();
    if (Contact.Status == 1)
    {
      if (Contact.Blocked == false)
      {
        Contact.Blocked = true;
      }
    }
    else
    {
      if (Contact.Blocked)
      {
        Contact.Blocked = false;
      }
    }
  }
}

This post was edited on 06-27-2006 at 11:15 AM by Ezra.
[Image: 1-0.png]
             
06-27-2006 11:08 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Invisibility - by The Game on 06-27-2006 at 10:34 AM
RE: [Request] Invisibility - by Ezra on 06-27-2006 at 10:43 AM
RE: [Request] Invisibility - by Sypher on 06-27-2006 at 10:52 AM
RE: [Request] Invisibility - by Ezra on 06-27-2006 at 10:54 AM
RE: RE: [Request] Invisibility - by The Brain on 06-27-2006 at 10:57 AM
RE: RE: RE: [Request] Invisibility - by CookieRevised on 06-27-2006 at 10:39 PM
RE: [Request] Invisibility - by Ezra on 06-27-2006 at 11:08 AM
RE: [Request] Invisibility - by Sypher on 06-27-2006 at 11:12 AM
RE: [Request] Invisibility - by Ezra on 06-27-2006 at 12:19 PM
RE: RE: [Request] Invisibility - by The_Joker on 06-27-2006 at 12:25 PM
RE: [Request] Invisibility - by Ezra on 06-27-2006 at 08:03 PM
RE: [Request] Invisibility - by qgroessl on 06-27-2006 at 08:05 PM
RE: [Request] Invisibility - by Pure_BY on 06-27-2006 at 08:37 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