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"
|