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:
vladinator
Junior Member
**

Avatar

Posts: 21
35 / Male / –
Joined: Apr 2003
RE: [Request] Warn/Block People who Toast Spam you
Just a small question since i'm trying to get the toast part in my own script, but can't quite get it to work. :P

code:
var a = new Array();

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

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{

    //Help text
    if( Message.match(/^!help$/i) && Origin != Messenger.MyName )
    {
        ChatWnd.SendMessage('!help = Show this text.')
        ChatWnd.SendMessage('!song = Show the song im listening to. (for my Winamp only)')
        ChatWnd.SendMessage('!sendsong = Send you the song im listening to.')
        ChatWnd.SendMessage('!roll = Rolls between 1 and 100. I know your a WoW bitch. (-.-)')
        ChatWnd.SendMessage('!wakeup = Shows a small message on my screen, handy when im unable to see or ignorre the chat.')
    }

    //Song name
    if( Message.match(/^!song$/i) && Origin != Messenger.MyName )
    {
        ChatWnd.SendMessage('/np')
    }
   
    //Send Song
    if( Message.match(/^!sendsong$/i) && Origin != Messenger.MyName )
    {
        ChatWnd.SendMessage('/sendsong')
    }
    if( Message.match(/^!songsend$/i) && Origin != Messenger.MyName )
    {
        ChatWnd.SendMessage('/sendsong')
    }
   
    //Roll(1-100)
    if( Message.match(/^!roll$/i) && Origin != Messenger.MyName )
    {
        ChatWnd.SendMessage('/roll')
    }
   
    //Wakeup
    if( Message.match(/^!wakeup$/i) && Origin != Messenger.MyName )
    {
        //ChatWnd.SendMessage('Yeye, im waking up and will answer if I saw it. Do not spam, if I am here I will reply. ty')
        //MsgPlus.DisplayToast('!wakeup','Some bitch is nugging you..');
       
        var popup = true;
        if (Email == a[i]) {
        popup = false;
        }
       
        if(popup){
        var Contact = Messenger.MyContacts.GetContact(Email);
        MsgPlus.DisplayToastContact("Toast", Contact.Name, "Has Toasted you!","","onSignInToast_Click", Email);
        var eind = a.length + 1;
        for(i=0; i < eind; i++) { //> if toast should get blocked or not
            if(a[i] == 'undefined') {
            a[i] = Email;
            break;
            }
        }
        MsgPlus.AddTimer(Email, 10000);
        }
       
    }
}

Do you see what I did wrong? ^_^ ty

This post was edited on 10-16-2006 at 07:58 PM by vladinator.
[Image: banner.gif]
10-16-2006 07:57 PM
Profile E-Mail 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