Shoutbox

Auto Login to WLM when connection fails - 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: Auto Login to WLM when connection fails (/showthread.php?tid=81884)

Auto Login to WLM when connection fails by sagagemini on 02-24-2008 at 10:49 PM

Hi

Well I have WLM 8.1 and I'm looking for some script that can Auto Login to WLM when internet connection fails and not just tell me that "Because a problem with the connection some changes may not apply....etc" frezze and do nothing.

I need something kinda like what WLM beta 8.5 does when internet connection fails, it attempts to auto recconect again until it login again, that's what I need but I don't want to install WLM beta 8.5.

Hope I can be helped, thanks!

bye


RE: Auto Login to WLM when connection fails by ArkaneArkade on 02-24-2008 at 11:26 PM

Heres a basic one, some of the guys might be able to give you a better script though.

code:
function OnEvent_Signout(email) {
    Debug.Trace(email);   
    if (email == "my@email.address") {
        MsgPlus.AddTimer("SignIn",10000);
    }
}

function OnEvent_Timer(TimerId) {
    if (TimerId == "SignIn")
    {
        Messenger.AutoSignin();
        MsgPlus.AddTimer("SignIn",10000);
    }
}

function OnEvent_Signin(email) {
    MsgPlus.CancelTimer("SignIn");
}
to use it you'll need to edit the email address and have your account set to sign in automatically.  I made this for when my wireless drops because msn trys when the network is connected to, but thats before the net is connected.

Why don't you want to use 8.5 though?  It's out of Beta, and intending to force and update very soon anyway, so it shouldn't make too much difference, I wouldn't think.
RE: Auto Login to WLM when connection fails by Jimbo on 02-25-2008 at 12:18 AM

quote:
Originally posted by Leroux
Heres a basic one, some of the guys might be able to give you a better script though.

code:
function OnEvent_Signout(email) {
    Debug.Trace(email);   
    if (email == "my@email.address") {
        MsgPlus.AddTimer("SignIn",10000);
    }
}

function OnEvent_Timer(TimerId) {
    if (TimerId == "SignIn")
    {
        Messenger.AutoSignin();
        MsgPlus.AddTimer("SignIn",10000);
    }
}

function OnEvent_Signin(email) {
    MsgPlus.CancelTimer("SignIn");
}
to use it you'll need to edit the email address and have your account set to sign in automatically.  I made this for when my wireless drops because msn trys when the network is connected to, but thats before the net is connected.

Why don't you want to use 8.5 though?  It's out of Beta, and intending to force and update very soon anyway, so it shouldn't make too much difference, I wouldn't think.
Well firstly, that script is really bad, say you want to log off WLM, it will just log you back on again which could get really annoying.
Maybe, on signout, you could display a box which says signing back in in 5, 4, 3, 2, 1 or whatever, and unless the user clicks cancell on that box, it will automatically sign them back in
RE: RE: Auto Login to WLM when connection fails by ArkaneArkade on 02-25-2008 at 12:39 AM

quote:
Originally posted by Jimbo

Well firstly, that script is really bad, say you want to log off WLM, it will just log you back on again which could get really annoying.
Maybe, on signout, you could display a box which says signing back in in 5, 4, 3, 2, 1 or whatever, and unless the user clicks cancell on that box, it will automatically sign them back in
I'll have a look into adding a prompt like that, it's just a straight copy from mines, because I'm the only one using the computer, so I never needed anything else.  Definitely needs refining, either when I get time, or if noone else can give a better solution.
RE: Auto Login to WLM when connection fails by sagagemini on 02-25-2008 at 04:48 AM

Hi

Thanks, it works, though I only tested once by login out myself and may not work if WLM get frezzed when connection fails, I'm worried.

I have one question now, is there any way to put my pass there on the script so I don't have to set my account to sign in automatically?, because I'm not the only one who use this computer :P

Oh, I don't want to update WLM for now because some other programs are not fully compatible with 8.5 such as Discovery :)

Thanks again bb


RE: RE: Auto Login to WLM when connection fails by sagagemini on 02-25-2008 at 03:39 PM

quote:
Originally posted by sagagemini

Thanks, it works, though I only tested once by login out myself and may not work if WLM get frezzed when connection fails, I'm worried.


Yeah as I expected when internet fails (56k modem dial up) WLM just frezze on the main window of my contact list as if I still where connected :S

What can I do?, an auto detect or something like that

Thanks take care bb
RE: Auto Login to WLM when connection fails by ArkaneArkade on 02-25-2008 at 05:46 PM

OK, I really wouldn't have a clue regarding that.  I generally find that MsgPlus stops working as well when Messenger does, so if it's freezing I wouldn't be able to use scripts anyway.


RE: Auto Login to WLM when connection fails by sagagemini on 02-25-2008 at 08:27 PM

That's exactly what is happening oh well :(

Thank you so much!