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

Pages: (2): « First « 1 [ 2 ] Last »
1 votes - 5 average   [Request] Warn/Block People who Toast Spam you
Author: Message:
Dave
Full Member
***


Posts: 167
Reputation: 1
33 / Male / Flag
Joined: Aug 2006
O.P. RE: [Request] Warn/Block People who Toast Spam you
right, thanks
PC Model: HP dv9340ea
OS: Windows Vista SP 1
WLM version: 14
MP!L version: 4.81
08-19-2006 09:56 PM
Profile E-Mail PM Find Quote Report
vladinator
Junior Member
**

Avatar

Posts: 21
34 / 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
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Request] Warn/Block People who Toast Spam you
quote:
Originally posted by Dave
Would it be possible to make a script that could send someone a warning message if they were toast spamming u (repeatedly changing status), and then block them if they continued.
My Signin Flood Protection script does exactly that...

Currently it detects contacts going online. You can easly alter it to detect status changes too:

1) install the Signin Flood Protection script

2) go to that script in the Plus! preferences and edit it:
Plus! > Preferences > General > Scripts > Signin Flood Protection > Edit

3) Add the following function to the end of the script:
code:
function OnEvent_ContactStatusChange(contactMail, contactNewStatus) {
    OnEvent_ContactSignin(contactMail);
}
4) Save the script and close the editing window.




also might help vladinator
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-16-2006 10:17 PM
Profile PM Find Quote Report
Dave
Full Member
***


Posts: 167
Reputation: 1
33 / Male / Flag
Joined: Aug 2006
O.P. RE: [Request] Warn/Block People who Toast Spam you
thanks cookierevised.  Now i just need to wait for someone to try and spam me...8-)
PC Model: HP dv9340ea
OS: Windows Vista SP 1
WLM version: 14
MP!L version: 4.81
10-17-2006 06:57 PM
Profile E-Mail PM 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