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

Pages: (2): « First [ 1 ] 2 » Last »
[Request] Invisibility
Author: Message:
The Game
New Member
*

Avatar

Posts: 4
– / Male / –
Joined: Jun 2006
O.P. Happy  [Request] Invisibility
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

This post was edited on 06-27-2006 at 10:38 AM by The Game.
06-27-2006 10:34 AM
Profile E-Mail 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] Invisibility
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

This post was edited on 06-27-2006 at 11:00 AM by Ezra.
[Image: 1-0.png]
             
06-27-2006 10:43 AM
Profile PM Web Find Quote Report
Sypher
Senior Member
****

Avatar

Posts: 623
Reputation: 15
36 / Male / Flag
Joined: Apr 2003
RE: [Request] Invisibility
Just asking... What is the use of this kind of function?

This post was edited on 06-27-2006 at 10:52 AM by Sypher.
Messenger Plus Beta Tester
Plus! Live Faq Maintainer
06-27-2006 10:52 AM
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] Invisibility
I guess if they appear offline, so do you :P
[Image: 1-0.png]
             
06-27-2006 10:54 AM
Profile PM Web Find Quote Report
The Brain
Junior Member
**

Avatar

Posts: 49
Reputation: 1
– / Male / Flag
Joined: Jan 2003
RE: RE: [Request] Invisibility
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.
06-27-2006 10:57 AM
Profile PM Web 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] 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
Sypher
Senior Member
****

Avatar

Posts: 623
Reputation: 15
36 / Male / Flag
Joined: Apr 2003
RE: [Request] Invisibility
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... :-#
Messenger Plus Beta Tester
Plus! Live Faq Maintainer
06-27-2006 11:12 AM
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] Invisibility
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...
[Image: 1-0.png]
             
06-27-2006 12:19 PM
Profile PM Web Find Quote Report
The_Joker
Full Member
***

Avatar
TF

Posts: 125
Joined: Oct 2005
RE: RE: [Request] Invisibility
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.
Messenger Plus! 3.61 unofficial Hebrew translator
Messenger Plus! Live unofficial Hebrew translator
06-27-2006 12:25 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] Invisibility
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...
[Image: 1-0.png]
             
06-27-2006 08:03 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