What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Warn/Block People who Toast Spam you

1 votes - 5 average   [Request] Warn/Block People who Toast Spam you
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [Request] Warn/Block People who Toast Spam you
sorry, you have to try it yourself.

code:
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE":
* <ezra@tsdme.nl> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return - Ezra (Zae)
* ----------------------------------------------------------------------------
* ----------------------------------------------------------------------------
* Thanks:
*
* ----------------------------------------------------------------------------
*/

var a = new Array();

function OnEvent_Timer(TimerId)
{
  for(i in a)
  {
    if (TimerId == a[i])
    {
      a[i] = undefined;
      break;
    }
  }
}

function OnEvent_ContactSignin(Email)
{
    var popup = true;
  for(var i in a){
    if (Email == a[i]){
      popup = false;
      break;
    }
  }
   
    if(popup){
        var Contact = Messenger.MyContacts.GetContact(Email);
        MsgPlus.DisplayToastContact("Toast", Contact.Name, "Has Just Signed in","","onSignInToast_Click", Email);
    }
}

function OnEvent_ContactSignout(Email)
{
  var eind = a.length + 1;
  for(i=0; i<eind; i++)
  {
        if(a[i] == undefined)
    {
            a[i] = Email;
      break;
        }
    }
    MsgPlus.AddTimer(Email, 10000);
}

function onSignInToast_Click(Email)
{
    Messenger.openChat(Email)
}

But the Event to use is OnEvent_ContactStatusChange(
    [string] Email,
    [enum] NewStatus
);
[Image: 1-0.png]
             
08-19-2006 12:16 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Warn/Block People who Toast Spam you - by Dave on 08-18-2006 at 02:18 PM
RE: [Request] Warn/Block People who Toast Spam you - by TheRealDave on 08-18-2006 at 10:42 PM
RE: [Request] Warn/Block People who Toast Spam you - by GiantSpider on 08-18-2006 at 10:45 PM
RE: [Request] Warn/Block People who Toast Spam you - by Ezra on 08-19-2006 at 12:24 AM
RE: [Request] Warn/Block People who Toast Spam you - by Dave on 08-19-2006 at 07:24 AM
RE: [Request] Warn/Block People who Toast Spam you - by Ezra on 08-19-2006 at 09:48 AM
RE: [Request] Warn/Block People who Toast Spam you - by Dave on 08-19-2006 at 11:59 AM
RE: [Request] Warn/Block People who Toast Spam you - by Ezra on 08-19-2006 at 12:16 PM
RE: [Request] Warn/Block People who Toast Spam you - by Dave on 08-19-2006 at 12:36 PM
RE: [Request] Warn/Block People who Toast Spam you - by Ezra on 08-19-2006 at 09:47 PM
RE: [Request] Warn/Block People who Toast Spam you - by Dave on 08-19-2006 at 09:56 PM
RE: [Request] Warn/Block People who Toast Spam you - by vladinator on 10-16-2006 at 07:57 PM
RE: [Request] Warn/Block People who Toast Spam you - by CookieRevised on 10-16-2006 at 10:17 PM
RE: [Request] Warn/Block People who Toast Spam you - by Dave on 10-17-2006 at 06:57 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