What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » timed auto sign in

timed auto sign in
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: timed auto sign in
Only thing I am not sure of is do scripts continue to run when there isn't a signed in user? If not this wont work. If so then somethinglike this would work :)

js code:
    var _time = new __time( 12 /* HOUR */, 0 /* MINUTE */, 0 /* SECOND */ );
    MsgPlus.AddTimer( '', 500 );

    function OnEvent_Timer( sTimerId ) {
        if ( _time.check() === true ) Messenger.AutoSignin();
        else MsgPlus.AddTimer( sTimerId, 500 );
    }
   
    var __time = function( intHour, intMinute, intSecond ) {
        if ( typeof intHour === 'undefined' || typeof intHour = 'string' ) intHour = 0;
        if ( typeof intMinute === 'undefined' || typeof intMinute = 'string' ) intMinute = 0;
        if ( typeof intSecond === 'undefined' || typeof intSecond = 'string' ) intSecond = 0;
       
        this.iHour = intHour;
        this.iMinute = intMinute;
        this.iSecond = intSecond;
    }

    __time.prototype = {
        "_check" : function ( ) {
            var d = new Date();
            if ( d.getHours() === this.iHour && d.getMinutes() === this.iMinute && d.getSeconds() === this.iSeconds ) return true;
            else return false;
        }
    }

This post was edited on 02-26-2009 at 02:21 PM by matty.
02-26-2009 02:20 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
timed auto sign in - by MrClueless on 02-26-2009 at 01:23 PM
RE: timed auto sign in - by djdannyp on 02-26-2009 at 01:26 PM
RE: timed auto sign in - by Mnjul on 02-26-2009 at 01:28 PM
RE: timed auto sign in - by MrClueless on 02-26-2009 at 01:38 PM
RE: timed auto sign in - by matty on 02-26-2009 at 02:20 PM
RE: timed auto sign in - by SmokingCookie on 02-27-2009 at 11:50 AM
RE: timed auto sign in - by matty on 02-27-2009 at 12:27 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