Shoutbox

Children Timer - 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: Children Timer (/showthread.php?tid=61717)

Children Timer by thedestroyer on 06-27-2006 at 09:27 AM

Hi !, I am spanish and I've got two children
My problem is that they connect to Messenger and they talk with his friends a lot, and I ask you if you could make a script to close the messenges when they have been a lot of time like two hours.
Sorry for my bad english but I can't explain well :S


RE: Children Timer by Sunshine on 06-27-2006 at 12:48 PM

[RANT]

At so called helpers: excuse me but where was your opinion asked wether or not this should be made? Why turn this thread into a chat thread? And what does it matter what reasons the poster has for this..i for one can think of reasons why one would like to limit the messenger use of children. Can we please go back to only posting when you know the answer....i myself do not know wether a script like this would be possible but i still wanted to say something about the behaviour onhere.

[/RANT]

thedestroyer: i think you'd be better of looking for a parental control program or anything of the sorts that limits connection time to the internet (seeing as there are webmessengers too).

Edit: a well known Parental Control Program is CyberPatrol.


RE: Children Timer by alexp2_ad on 06-27-2006 at 12:57 PM

I'll make something like this later today, as has been pointed out, smart kids could get around this anyway, but I'll do it anyway, just for the fun of it. :P


RE: Children Timer by thedestroyer on 07-05-2006 at 02:44 PM

I've make a provisional one:

code:
var Sec = 0;
var Min = 0;
var Hrs = 0;
var Days = 0;
var Weeks = 0;

function OnEvent_Signin(Email)
{
var Email_1 = "default@hotmail.com"; //Change to your children email
var Email_2 = "";

if (Email == Email_1 || Email == Email_2) {
MsgPlus.AddTimer("Time",1000);
}

else {}

}

function OnEvent_Timer(sTimerId)
{
    if (sTimerId == "Time") {   
       
        if (Sec == "60") {
            Sec = 0;
            Min = Min + 1;
        }
        if (Min == "60") {
            Hrs = Hrs + 1;
            Min = 0;
        }
        if (Hrs == "24") {
            Hrs = 0;
            Days = Days + 1;
        }
         
        if (Days == "7") {
            Days = 0;
            Weeks = Weeks + 1
        }
        Debug.Trace(OnlineTime);
        Sec = Sec + 1;
        MsgPlus.AddTimer("Time",1000);
       
        if (Hrs == "2") {
            var Message = "Bye Bye !";
            Message = MsgPlus.RemoveFormatCodes(Message);
             MsgPlus.DisplayToast("Your time is over", Message,'notify.mp3');
             Messenger.signout();         } 

    }
}


I need that children can't connect after the signout :D
Hi !
RE: Children Timer by NiteMare on 07-05-2006 at 03:11 PM

quote:
Originally posted by thedestroyer
I've make a provisional one:

code:
var Sec = 0;
var Min = 0;
var Hrs = 0;
var Days = 0;
var Weeks = 0;

function OnEvent_Signin(Email)
{
var Email_1 = "default@hotmail.com"; //Change to your children email
var Email_2 = "";

if (Email == Email_1 || Email == Email_2) {
MsgPlus.AddTimer("Time",1000);
}

else {}

}

function OnEvent_Timer(sTimerId)
{
    if (sTimerId == "Time") {   
       
        if (Sec == "60") {
            Sec = 0;
            Min = Min + 1;
        }
        if (Min == "60") {
            Hrs = Hrs + 1;
            Min = 0;
        }
        if (Hrs == "24") {
            Hrs = 0;
            Days = Days + 1;
        }
         
        if (Days == "7") {
            Days = 0;
            Weeks = Weeks + 1
        }
        Debug.Trace(OnlineTime);
        Sec = Sec + 1;
        MsgPlus.AddTimer("Time",1000);
       
        if (Hrs == "2") {
            var Message = "Bye Bye !";
            Message = MsgPlus.RemoveFormatCodes(Message);
             MsgPlus.DisplayToast("Your time is over", Message,'notify.mp3');
             Messenger.signout();         } 

    }
}


I need that children can't connect after the signout :D
Hi !
you could make a variable that sets to false when you force them to sign off, and then set i timer to change the variable back, after say an hour or something, you could also store this variable and a date and time when it was set, in teh registy, incase they close WLM and restart it (reseting the script variables)
RE: Children Timer by thedestroyer on 07-05-2006 at 03:16 PM

Ok, something like...

quote:
var Sec = 0;
var Min = 0;
var Hrs = 0;
var Days = 0;
var Weeks = 0;

function OnEvent_Signin(Email)
{
var Email_1 = "default@hotmail.com";  // Your children email
var Email_2 = "";
if (Email_1 == Email || Email_2 == Email) {
MsgPlus.AddTimer("Time",1000);
}
}

function OnEvent_Timer(sTimerId)
{
    if (sTimerId == "Time") {   
       
        if (Sec == "60") {
            Sec = 0;
            Min = Min + 1;
        }
        if (Min == "60") {
            Hrs = Hrs + 1;
            Min = 0;
        }
        if (Hrs == "24") {
            Hrs = 0;
            Days = Days + 1;
        }
        if (Days == "7") {
            Days = 0;
            Weeks = Weeks + 1
        }
        var OnlineTime = "Online: " + Days + " days, " + Hrs + " hours, " + Min + " mins and " + Sec + " seconds";
        Messenger.MyPersonalMessage = OnlineTime
        Debug.Trace(OnlineTime);
        Sec = Sec + 1;
        MsgPlus.AddTimer("Time",1000);
                if ((Hrs == "2") && (Sec >= "0") && (Min >=0)) {
         var Message = "Your time is over !" ;
        Message = MsgPlus.RemoveFormatCodes(Message);
         MsgPlus.DisplayToast("Max Time", Message,'notify.mp3');
         Messenger.signout();
       
         } 
    }
}[/code]


RE: Children Timer by NiteMare on 07-05-2006 at 03:22 PM

quote:
Originally posted by thedestroyer
Ok, something like...

quote:
var Sec = 0;
var Min = 0;
var Hrs = 0;
var Days = 0;
var Weeks = 0;

function OnEvent_Signin(Email)
{
var Email_1 = "default@hotmail.com";  // Your children email
var Email_2 = "";
if (Email_1 == Email || Email_2 == Email) {
MsgPlus.AddTimer("Time",1000);
}
}

function OnEvent_Timer(sTimerId)
{
    if (sTimerId == "Time") {   
       
        if (Sec == "60") {
            Sec = 0;
            Min = Min + 1;
        }
        if (Min == "60") {
            Hrs = Hrs + 1;
            Min = 0;
        }
        if (Hrs == "24") {
            Hrs = 0;
            Days = Days + 1;
        }
        if (Days == "7") {
            Days = 0;
            Weeks = Weeks + 1
        }
        var OnlineTime = "Online: " + Days + " days, " + Hrs + " hours, " + Min + " mins and " + Sec + " seconds";
        Messenger.MyPersonalMessage = OnlineTime
        Debug.Trace(OnlineTime);
        Sec = Sec + 1;
        MsgPlus.AddTimer("Time",1000);
                if ((Hrs == "2") && (Sec >= "0") && (Min >=0)) {
         var Message = "Your time is over !" ;
        Message = MsgPlus.RemoveFormatCodes(Message);
         MsgPlus.DisplayToast("Max Time", Message,'notify.mp3');
         Messenger.signout();
       
         } 
    }
}[/code]

i don't see a differance there:P
but this is what i'm talking about, mind you its not tested, and could have bugs

code:
//put this where you force them to sign out

AddTimer("access",60 * 60 * 1000); //Sets a timer for an hour


OnEvent_Timer(TimerId ){
    //if the timer is the access timer
    if (TimerId == "access")
        //set the variable to true, allowing signin access
        allowaccess == true;
    }

}


OnEvent_Signin(sEmail){
    //if the time is to short between signing back in
    if (allowaccess == false){
        //auto sign them out again
        Messenger.Signout();
    }
}



RE: Children Timer by Voldemort on 07-05-2006 at 03:31 PM

Well, just a suggestion, if they are going to be signed out without advice from the script, make it send a "goodbye message" to their contacts, or give them an extra minute to say bye..


RE: Children Timer by thedestroyer on 07-05-2006 at 05:25 PM

Hi !, how to create a txt file?
If we create a txt and we write de emails on there, we can read the txt when we start to chat and the script can deny the access
Sorry if you can't understand me :S


RE: Children Timer by NiteMare on 07-05-2006 at 05:49 PM

you can use this utilitys script -dt- made, just put it in the folder as your other script, and you can call across to it