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:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
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 »

Messages In This Thread
[Request] After disconnect, change status? - by Chris4 on 03-23-2008 at 07:18 PM
RE: [Request] After disconnect, change status? - by toddy on 03-23-2008 at 07:19 PM
RE: [Request] After disconnect, change status? - by Chris4 on 03-24-2008 at 06:13 AM
RE: [Request] After disconnect, change status? - by CookieRevised on 03-24-2008 at 12:32 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