What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Children Timer

Children Timer
Author: Message:
thedestroyer
New Member
*


Posts: 5
Joined: Jun 2006
O.P. Children Timer
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

This post was edited on 06-27-2006 at 09:28 AM by thedestroyer.
06-27-2006 09:27 AM
Profile E-Mail PM Find Quote Report
Sunshine
Elite Member
*****

Avatar

Posts: 5141
Reputation: 122
– / Female / Flag
Joined: Mar 2004
Status: Away
RE: Children Timer
[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.

This post was edited on 07-02-2006 at 01:29 PM by Sunshine.
[Image: 25dr3o9]
06-27-2006 12:48 PM
Profile E-Mail PM Web Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
37 / Male / –
Joined: May 2004
Status: Away
RE: Children Timer
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
06-27-2006 12:57 PM
Profile E-Mail PM Find Quote Report
thedestroyer
New Member
*


Posts: 5
Joined: Jun 2006
O.P. RE: Children Timer
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 !
07-05-2006 02:44 PM
Profile E-Mail PM Find Quote Report
NiteMare
Veteran Member
*****

Avatar
Giga-Byte me

Posts: 2497
Reputation: 37
37 / Male / Flag
Joined: Aug 2003
RE: Children Timer
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)

This post was edited on 07-05-2006 at 03:12 PM by NiteMare.
[Image: sig/]
I'll never forget what she said 6861 days, 6 hours, 29 minutes, 29 seconds ago
Need hosting? Check
out my website. we can help you out :)
07-05-2006 03:11 PM
Profile PM Web Find Quote Report
thedestroyer
New Member
*


Posts: 5
Joined: Jun 2006
O.P. RE: Children Timer
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]

This post was edited on 07-05-2006 at 03:17 PM by thedestroyer.
07-05-2006 03:16 PM
Profile E-Mail PM Find Quote Report
NiteMare
Veteran Member
*****

Avatar
Giga-Byte me

Posts: 2497
Reputation: 37
37 / Male / Flag
Joined: Aug 2003
RE: Children Timer
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();
    }
}

[Image: sig/]
I'll never forget what she said 6861 days, 6 hours, 29 minutes, 29 seconds ago
Need hosting? Check
out my website. we can help you out :)
07-05-2006 03:22 PM
Profile PM Web Find Quote Report
Voldemort
Veteran Member
*****

Avatar

Posts: 3504
Reputation: 49
– / – / Flag
Joined: Jul 2005
Status: Away
RE: Children Timer
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..
*All posts are a purely speculative hypothesis based on abstract reasoning.
Not my daughter, you bitch!
[Image: ico-mollytrix16.gif]
07-05-2006 03:31 PM
Profile E-Mail PM Find Quote Report
thedestroyer
New Member
*


Posts: 5
Joined: Jun 2006
O.P. RE: Children Timer
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
07-05-2006 05:25 PM
Profile E-Mail PM Find Quote Report
NiteMare
Veteran Member
*****

Avatar
Giga-Byte me

Posts: 2497
Reputation: 37
37 / Male / Flag
Joined: Aug 2003
RE: Children Timer
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

.zip File Attachment: _util.zip (7.81 KB)
This file has been downloaded 122 time(s).
[Image: sig/]
I'll never forget what she said 6861 days, 6 hours, 29 minutes, 29 seconds ago
Need hosting? Check
out my website. we can help you out :)
07-05-2006 05:49 PM
Profile PM Web Find Quote Report
« 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