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:
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, 12 hours, 14 minutes, 45 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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Children Timer - by thedestroyer on 06-27-2006 at 09:27 AM
RE: Children Timer - by Sunshine on 06-27-2006 at 12:48 PM
RE: Children Timer - by alexp2_ad on 06-27-2006 at 12:57 PM
RE: Children Timer - by thedestroyer on 07-05-2006 at 02:44 PM
RE: Children Timer - by NiteMare on 07-05-2006 at 03:11 PM
RE: Children Timer - by thedestroyer on 07-05-2006 at 03:16 PM
RE: Children Timer - by NiteMare on 07-05-2006 at 03:22 PM
RE: Children Timer - by Voldemort on 07-05-2006 at 03:31 PM
RE: Children Timer - by thedestroyer on 07-05-2006 at 05:25 PM
RE: Children Timer - by NiteMare on 07-05-2006 at 05:49 PM


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