What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Block MSN Contact on a Schedule Basis

Block MSN Contact on a Schedule Basis
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Block MSN Contact on a Schedule Basis
Use a script...

[code]
var email = "AnnoyingGuy123@hotmail.com"; //Their Email
var start_hour = 9; //Time to block contact
var start_minutes = 0; //Time to block contact
var stop_hour = 13; //Time to unblock contact
var stop_minutes= 0; //Time to unblock contact

function OnEvent_Timer(tID){
var d = new Date();
var hour = d.getHour();
var minutes = d.getMinutes();
if(hour>=start_hour&&minutes>=start_minutes&&hour<=stop_hour&&minutes<=stop_minutes){
var Contact = Contacts.GetContact(email);
Contact.Blocked = true
}else{
var Contact = Contacts.GetContact(email);
Contact.Blocked = false;
}
}

function OnEvent_SigninReady(){
MsgPlus.AddTimer("block",10000);
}

That should work... I'm actually gonna develop this later with support for multiple users/times
<Eljay> "Problems encountered: shit blew up" :zippy:
08-23-2007 02:19 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Block MSN Contact on a Schedule Basis - by ~*McoreD*~ on 08-23-2007 at 10:21 AM
RE: Block MSN Contact on a Schedule Basis - by Spunky on 08-23-2007 at 02:19 PM
RE: Block MSN Contact on a Schedule Basis - by ~*McoreD*~ on 08-23-2007 at 11:45 PM
RE: Block MSN Contact on a Schedule Basis - by vikke on 08-23-2007 at 11:57 PM
RE: Block MSN Contact on a Schedule Basis - by ~*McoreD*~ on 08-24-2007 at 12:02 AM
RE: Block MSN Contact on a Schedule Basis - by Spunky on 08-24-2007 at 01:03 AM
RE: Block MSN Contact on a Schedule Basis - by ~*McoreD*~ on 08-24-2007 at 10:06 AM
RE: Block MSN Contact on a Schedule Basis - by aNILEator on 08-24-2007 at 12:06 PM
RE: Block MSN Contact on a Schedule Basis - by ~*McoreD*~ on 09-05-2007 at 11:01 AM
RE: Block MSN Contact on a Schedule Basis - by Spunky on 09-05-2007 at 11:20 AM


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