Shoutbox

timed auto sign in - 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: timed auto sign in (/showthread.php?tid=89404)

timed auto sign in by MrClueless on 02-26-2009 at 01:23 PM

does anyone know of a script or a way to assign a time for wlm to sign in automatically daily?


RE: timed auto sign in by djdannyp on 02-26-2009 at 01:26 PM

This cannot be done with scripts as a script will only run once Messenger is signed in.

The only way would be to set Messenger to auto-sign in when it's opened and then use Windows Task Scheduler to schedule when you want Messenger to run, that way it will automatically run and sign in whenever you set it to

Note: You will also need to set messenger to NOT run when windows starts up, otherwise it would just run and sign-in whenever you started up the computer


RE: timed auto sign in by Mnjul on 02-26-2009 at 01:28 PM

Well, it might be possible with Messenger::AutoSignIn() .


RE: timed auto sign in by MrClueless on 02-26-2009 at 01:38 PM

thanks djdanny im gonna test that out and see if it would work. much appreciated.


RE: timed auto sign in by matty on 02-26-2009 at 02:20 PM

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 :)

Javascript 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;
        }
    }


RE: timed auto sign in by SmokingCookie on 02-27-2009 at 11:50 AM

Ahem..

JScript code:
var Delay = 10000; // Ten secs. Alter as necessary
 
function OnEvent_Initialize(msg) {
    MsgPlus.AddTimer("TmrSignin",Delay);
}
 
// optional: cancel timer upon signin (if not cancelled yet)
function OnEvent_SigninReady(Email) {
    MsgPlus.CancelTimer("TmrSignin");
}
 
 
function OnEvent_Signout(Email) {
    MsgPlus.AddTimer("TmrSignin",Delay);
}
 
function OnEvent_Timer(id) {
    switch(id) {
        case "TmrSignin":
            Messenger.AutoSignin();
        return -1;
    }
}


Guess this should work?
RE: timed auto sign in by matty on 02-27-2009 at 12:27 PM

I guess I misread what they wanted. Mine signs in at a specific time of day.