Shoutbox

[Request] Invisibility - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Request] Invisibility (/showthread.php?tid=61722)

[Request] Invisibility by The Game on 06-27-2006 at 10:34 AM

hi

is it possible to write a script like the "Invisibility" script on the amsn plugin site
http://amsn.sourceforge.net/plugins.php

description: "This plugin will block contacts going offline and unblock when status changes to online"

thanx


RE: [Request] Invisibility by Ezra on 06-27-2006 at 10:43 AM

Wouldn't this do the trick?

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;
  }
}

EDIT: Fixed sloppy coding + tested and works :D
RE: [Request] Invisibility by Sypher on 06-27-2006 at 10:52 AM

Just asking... What is the use of this kind of function?


RE: [Request] Invisibility by Ezra on 06-27-2006 at 10:54 AM

I guess if they appear offline, so do you :P


RE: RE: [Request] Invisibility by The Brain on 06-27-2006 at 10:57 AM

quote:
Originally posted by Ezra
Wouldn't this do the trick?

code:
...



Yes, I think, except for the cases of you signing in and signing out. When you sign out, you probably want to block everyone, and then unblock people who are online when you sign back in. Or something like that at least, so that when you sign in everything is made right.

I imagine the point of this is to stop people 'spying' on you, sitting there in Appear Offline and recording your events. I know people who do that, sometimes I do it myself. But I also know people who wait in Appear Offline until someone comes online who they want to talk to. If I had this script running, I would never get to talk to them.
RE: [Request] Invisibility by Ezra on 06-27-2006 at 11:08 AM

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;
      }
    }
  }
}

RE: [Request] Invisibility by Sypher on 06-27-2006 at 11:12 AM

I don't know if Microsoft likes it, i personally have 140 users in my list (cleaned it up last week) and it normally takes a while to block or onblock a user... Don't know how long it'll takes for all 140 :P

Imho it's useless, but my opinion is irrelevant to this... So i'll just... :-#


RE: [Request] Invisibility by Ezra on 06-27-2006 at 12:19 PM

Also another thing about this mechanism, if both contacts have this plugin they will block eachother as soon as one goes offline, and they will never unblock eachother again...


RE: RE: [Request] Invisibility by The_Joker on 06-27-2006 at 12:25 PM

quote:
Originally posted by Ezra
Also another thing about this mechanism, if both contacts have this plugin they will block eachother as soon as one goes offline, and they will never unblock eachother again...

LOL, he's right.

Another thing I've noticed is that this is also buggy if u blocked some1 and want him to stay blocked.
RE: [Request] Invisibility by Ezra on 06-27-2006 at 08:03 PM

quote:
Originally posted by The_Joker
Another thing I've noticed is that this is also buggy if u blocked some1 and want him to stay blocked.

I already fixed that part by saving the script blocked emails in the registry, but that other bug is the most annoying, and renders the script totally useless, cause it will keep blocking the persons that also have this script and it can't unblock them anymore...

RE: [Request] Invisibility by qgroessl on 06-27-2006 at 08:05 PM

OF COURSE... you could always use the Appear Offline feature of WLM.... cause using that feature, WLM mad eit so you can talk to contacts while you are appearing offline.


RE: [Request] Invisibility by Pure_BY on 06-27-2006 at 08:37 PM

Indeed, this is the most useless and "dangerous" script so far :P
But an effort is always nice :) Thanks for that


RE: RE: RE: [Request] Invisibility by CookieRevised on 06-27-2006 at 10:39 PM

quote:
Originally posted by The Brain
Yes, I think, except for the cases of you signing in and signing out. When you sign out, you probably want to block everyone
what is the use in that (if it even was possible...)? If you signout, they can't contact you anyways, nor see your status (you would be offline anyways), etc...

quote:
Originally posted by The Brain
I imagine the point of this is to stop people 'spying' on you
Seeing the script, yeah... I think so. .. But as far as I know, this isn't being "invisibe" as posted in the top post...

With an "invisible" feature you are invisible to contacts, even when you and your contacts are online, your contacts wouldn't be able to see you... And this is actually exactly what "Apear Offline" does.

So:
quote:
Originally posted by Pure_BY
Indeed, this is the most useless and "dangerous" script so far :P
yeah, most useless script ever.