What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] After disconnect, change status?

[Request] After disconnect, change status?
Author: Message:
Chris4
Elite Member
*****

Avatar

Posts: 4461
Reputation: 84
33 / Male / Flag
Joined: Dec 2004
O.P. [Request] After disconnect, change status?
When I usually sign-in, I sign in as offline. After that I go online.

Then, if my wireless was to suddenly disconnect me for a few seconds (which it sometimes does), Messenger would reconnect after a few seconds and I would sign back in as my default of offline; but the problem is that usually I don't even notice I've been disconnected and I end up being offline for half an hour without realising.

Is it possible to have a script that, if I reconnect to Messenger, it changes my status to online?
Twitter: @ChrisLozeau
03-23-2008 07:18 PM
Profile PM Find Quote Report
toddy
Veteran Member
*****

Avatar
kcus uoy

Posts: 2573
Reputation: 49
– / Male / Flag
Joined: Jun 2004
RE: [Request] After disconnect, change status?
'remember my status' (irc) if the script is still around

or just sign-in online

edit:
http://www.msgpluslive.net/scripts/view/24-Remember-Status/ altho it does change the status before you sign in now, so if you lose connection as busy you'll always sign back in as busy. rather then just the once, then going back to sign in offline

for more info see [REQUEST] Remember Status

This post was edited on 03-23-2008 at 07:33 PM by toddy.
03-23-2008 07:19 PM
Profile PM Find Quote Report
Chris4
Elite Member
*****

Avatar

Posts: 4461
Reputation: 84
33 / Male / Flag
Joined: Dec 2004
O.P. RE: [Request] After disconnect, change status?
I guess that could work. Thanks.
Twitter: @ChrisLozeau
03-24-2008 06:13 AM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Request] After disconnect, change status?
Add this to my RememberStatus script to let it do exactly what you want:

code:
var MyUserId;
var MyStatus;

function OnEvent_Signin(Email) {
    if (MyUserId !== Messenger.MyUserId) {
        MyUserId = Messenger.MyUserId;
        MyStatus = Messenger.MyStatus;
    }
}

function OnEvent_Uninitialize(MessengerExit) {
    if (MessengerExit && MyUserId != null) {
        try {
            new ActiveXObject("WScript.Shell").RegWrite(
                "HKEY_CURRENT_USER\\Software\\Microsoft\\MSNMessenger\\PerPassportSettings\\" + MyUserId + "\\DefaultSignInState",
                Array(6, 2, 10, 14, 18, 34, 50, 66)[MyStatus-2],
                "REG_DWORD"
            )
        } catch ( e ) {}
    }
}

If you add that code to the already existing code of the script, then the script will reset the status back to what it was the first time you've signed in when you actually exit Messenger. And it will still have the original behaviour of keeping the momentary status when you sign out/sign in.

It should still be polygamy safe and still be multi-user-friendly I think (I wrote this quickly without much testing and thinking).

But please don't redistribute the modified script. Keep it as a personal mod. This is just experimental.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-24-2008 12:32 PM
Profile 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