[Request] Warn/Block People who Toast Spam you - 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] Warn/Block People who Toast Spam you (/showthread.php?tid=65076)
[Request] Warn/Block People who Toast Spam you by Dave on 08-18-2006 at 02:18 PM
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. I think it would be useful because of the scripts out there that are designed to annoy people by spamming them, and it would be nice to have a defence against them. I'm sure it must be possible, but i can't write script, so can someone else have a go?
Thanks,
Dave
PS: I cant find a script that does it, but if there is one, please post a link to it.
RE: [Request] Warn/Block People who Toast Spam you by TheRealDave on 08-18-2006 at 10:42 PM
I was thinking of making a script that would nudge spam someone who toast spammed me. I think it'd be a treat.
RE: [Request] Warn/Block People who Toast Spam you by GiantSpider on 08-18-2006 at 10:45 PM
If I remember rightly it's Hopper that does this isn't it, maybe it would be better if there was a feature that was in that limited it. Mnjul?
quote: Originally posted by TheRealDave
I was thinking of making a script that would nudge spam someone who toast spammed me. I think it'd be a treat.
Not really the solution is it.
RE: [Request] Warn/Block People who Toast Spam you by Ezra on 08-19-2006 at 12:24 AM
I made a script that kinda does this, wasn't going to release it, but if you like I can post it here so you can use it.
This doesn't warn/block or anything, it simply takes over the toast function from msn. When someone goes offline, it remembers the e-mailadress for 10 seconds, if they come online within these 10 seconds no toast is shown.
Also msgplus! toasts don't have that flashy gradient or display picture. Let me know.
RE: [Request] Warn/Block People who Toast Spam you by Dave on 08-19-2006 at 07:24 AM
quote: Originally posted by Ezra
When someone goes offline, it remembers the e-mailadress for 10 seconds, if they come online within these 10 seconds no toast is shown.
Does it do the same if the switch between busy and online as well/can it be edited to do this?
RE: [Request] Warn/Block People who Toast Spam you by Ezra on 08-19-2006 at 09:48 AM
quote: Originally posted by Dave
quote: Originally posted by Ezra
When someone goes offline, it remembers the e-mailadress for 10 seconds, if they come online within these 10 seconds no toast is shown.
Does it do the same if the switch between busy and online as well/can it be edited to do this?
Right now it only shows a toast when somone comes online, but you could adapt it to do that too.
RE: [Request] Warn/Block People who Toast Spam you by Dave on 08-19-2006 at 11:59 AM
you say i could - bear in mind i hae no experience of programming other than copying other people's programs into visual basic. could you do it for me please?
RE: [Request] Warn/Block People who Toast Spam you by Ezra on 08-19-2006 at 12:16 PM
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
);
RE: [Request] Warn/Block People who Toast Spam you by Dave on 08-19-2006 at 12:36 PM
right... thanks very much, i'll give it a go
edit: does this code go instead of the OnEvent initialise stuff that's already in the script when you make a new one on MP!L or doesn it go between the OnEvent initialise and OnEvent unitialise?
RE: [Request] Warn/Block People who Toast Spam you by Ezra on 08-19-2006 at 09:47 PM
When you create a new one, delete everything inside and put this in it.
RE: [Request] Warn/Block People who Toast Spam you by Dave on 08-19-2006 at 09:56 PM
right, thanks
RE: [Request] Warn/Block People who Toast Spam you by vladinator on 10-16-2006 at 07:57 PM
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.
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
RE: [Request] Warn/Block People who Toast Spam you by CookieRevised on 10-16-2006 at 10:17 PM
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
RE: [Request] Warn/Block People who Toast Spam you by Dave on 10-17-2006 at 06:57 PM
thanks cookierevised. Now i just need to wait for someone to try and spam me...
|