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:
MrClueless
New Member
*


Posts: 2
Joined: Feb 2009
O.P. timed auto sign in
does anyone know of a script or a way to assign a time for wlm to sign in automatically daily?
02-26-2009 01:23 PM
Profile E-Mail PM Find Quote Report
djdannyp
Elite Member
*****

Avatar
Danny <3 Sarah

Posts: 3546
Reputation: 31
38 / Male / Flag
Joined: Mar 2006
RE: timed auto sign in
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

This post was edited on 02-26-2009 at 01:27 PM by djdannyp.
[Image: 1ftt0hpk-signature.png]
AutoStatus Script || Facebook Status Script
5425 days, 8 hours, 33 minutes, 32 seconds ago
02-26-2009 01:26 PM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: timed auto sign in
Well, it might be possible with Messenger::AutoSignIn() .
02-26-2009 01:28 PM
Profile PM Web Find Quote Report
MrClueless
New Member
*


Posts: 2
Joined: Feb 2009
O.P. RE: timed auto sign in
thanks djdanny im gonna test that out and see if it would work. much appreciated.
02-26-2009 01:38 PM
Profile E-Mail PM Find Quote Report
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
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: timed auto sign in
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?
02-27-2009 11:50 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: timed auto sign in
I guess I misread what they wanted. Mine signs in at a specific time of day.
02-27-2009 12:27 PM
Profile E-Mail PM 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