Shoutbox

[REQUEST] Remember Status - 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: [REQUEST] Remember Status (/showthread.php?tid=61498)

[REQUEST] Remember Status by vk3xem on 06-26-2006 at 04:43 AM

Is it possible to have a script that will remember your last status so when WML restarts it will return to that status?


RE: [REQUEST] Remember Status by Felu on 06-26-2006 at 05:18 AM

quote:
Originally posted by JayZ
just use the "sign in as..." feature built into wlm.
quote:
Originally posted by vk3xem
s it possible to have a script that will remember your last status so when WML restarts it will return to that status?
This is not wanted.
RE: [REQUEST] Remember Status by Chestah on 06-26-2006 at 05:42 AM

quote:
Originally posted by vk3xem
Is it possible to have a script that will remember your last status so when WML restarts it will return to that status?

To answer your question. Yes, it is possible. I don't have time to make it unfortunately but all it would require is saving the last status used when the user is signing off to a file. Then when the script is loaded simply changing the status to that stored in the file.
RE: [REQUEST] Remember Status by Silentdragon on 06-26-2006 at 09:55 AM

Hmm, made a simple little thing. Stores the status in a txt file, and supports multiple emails.


RE: [REQUEST] Remember Status by Ezra on 06-26-2006 at 10:34 AM

Why use a txt file, and not just the registry?

EDIT: Like this:

code:
var sleutel = "Status";

function OnEvent_Signout(Email)
{
  var status = Messenger.MyStatus;
  WriteRegistry(sleutel + "\\" + Email, status);
}

function OnEvent_SigninReady(Email)
{
  try
  {
    var status = ReadRegistry(sleutel + "\\" + Email);
    Messenger.MyStatus = status;
  }
  catch(err)
  {
    WriteRegistry(sleutel + "\\" + Email, "0");
  }
}

function WriteRegistry(key, value)
{
  var Shell = new ActiveXObject("WScript.Shell");
  var ValRegPath = MsgPlus.ScriptRegPath + key;
  Shell.RegWrite(ValRegPath, value);
}

function ReadRegistry(key)
{
  var Shell = new ActiveXObject("WScript.Shell");
  return value = Shell.RegRead(MsgPlus.ScriptRegPath + key);
}


EDIT: Added a plsc file for easy importing

EDIT2: Forgot that multiple users can use msn, will edit, for the time beiing, don't use it :D

EDIT3: Added multiple users support, also updated the plsc file for easy importing.
RE: [REQUEST] Remember Status by vk3xem on 06-26-2006 at 01:55 PM

Very nice Ezra.  It doesn't remember the Personalised Status but it still works great!    (Y)    Thanks.


RE: [REQUEST] Remember Status by CookieRevised on 06-26-2006 at 02:38 PM

quote:
Originally posted by Ezra
Why use a txt file, and not just the registry?
Why storing it at all? :p

---

You do not need to store anything, not in the registry, not in an external file...
Simply set the default signin status of WLM each time your status changes....

This even prevents that WLM will sign in with another status first.

code:
function OnEvent_MyStatusChange(NewStatus) {
    var SignInState = new Array(6, 2, 10, 14, 18, 34, 50, 66);
    if (NewStatus >= 2) {
        var Shell = new ActiveXObject("WScript.Shell");
        Shell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\MSNMessenger\\PerPassportSettings\\"
                                                                                + Messenger.MyUserId
                                                                            + "\\DefaultSignInState",
                       SignInState[NewStatus-2],
                       "REG_DWORD");
    }
}



quote:
Originally posted by vk3xem
Very nice Ezra.  It doesn't remember the Personalised Status but it still works great!    (Y)    Thanks.
Note: It is not possible to (re)store a personalised status as there is no way in retrieving all the settings of a temporary status. Such settings are only stored in the memory of Messenger Plus! and there are no objects in the script system to read them.


Download script pack:
http://www.msgpluslive.net/scripts/browse/index.php?act=view&id=24
http://www.msgpluslive.net/scripts/view/24-Remember-Status/
RE: [REQUEST] Remember Status by Chestah on 06-26-2006 at 09:15 PM

Good idea Cookie :P. I didn't even think about doing it that way.. or that it would have to switch statuses using my method. nw :P


RE: [REQUEST] Remember Status by lizard.boy on 06-26-2006 at 10:23 PM

I never would have thought of that, but thats an awesome idea. Thanks guys, I'm using it now.


RE: RE: [REQUEST] Remember Status by The Alpha Gamer on 11-10-2007 at 03:40 AM

quote:
Originally posted by CookieRevised
quote:
Originally posted by Ezra
Why use a txt file, and not just the registry?
Why storing it at all? :p

---

You do not need to store anything, not in the registry, not in an external file...
Simply set the default signin status of WLM each time your status changes....

This even prevents that WLM will sign in with another status first.

code:
function OnEvent_MyStatusChange(NewStatus) {
    var SignInState = new Array(6, 2, 10, 14, 18, 34, 50, 66);
    if (NewStatus >= 2) {
        var Shell = new ActiveXObject("WScript.Shell");
        Shell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\MSNMessenger\\PerPassportSettings\\"
                                                                                + Messenger.MyUserId
                                                                            + "\\DefaultSignInState",
                       SignInState[NewStatus-2],
                       "REG_DWORD");
    }
}



quote:
Originally posted by vk3xem
Very nice Ezra.  It doesn't remember the Personalised Status but it still works great!    (Y)    Thanks.
Note: It is not possible to (re)store a personalised status as there is no way in retrieving all the settings of a temporary status. Such settings are only stored in the memory of Messenger Plus! and there are no objects in the script system to read them.


Download script pack:
http://www.msgpluslive.net/scripts/browse/index.php?act=view&id=24
http://www.msgpluslive.net/scripts/view/24-Remember-Status/

When i try to download that, i get a 404 page not found error, re-up please?
RE: [REQUEST] Remember Status by waynewilson2 on 11-10-2007 at 05:08 AM

quote:
Originally posted by CookieRevised
Note: It is not possible to (re)store a personalised status as there is no way in retrieving all the settings of a temporary status. Such settings are only stored in the memory of Messenger Plus! and there are no objects in the script system to read them.

Thats not nececarily correct...the MsgPlus personalized status is basicly just a psm change...it changes ur psm to whatever your personalized status is, then changes your status to away/busy, which ever you chose

vk3xem, if you want, you can save it all to a file...
just make it write the following things to file/registry...
Messenger.MyStatus
Messenger.MyPersonalMessage
Messenger.MyName
...should work good...
RE: [REQUEST] Remember Status by Matti on 11-10-2007 at 10:47 AM

quote:
Originally posted by waynewilson2
Thats not nececarily correct...the MsgPlus personalized status is basicly just a psm change...it changes ur psm to whatever your personalized status is, then changes your status to away/busy, which ever you chose
I have to disagree here, because Cookie is right.

Plus! lets you set a lot of options for a personalized status:
Note: these are all free translated from the Dutch translation, since I didn't bother changing my language just for this. :tongue:
  • Description - The description of the status, as displayed in Plus! menus.
  • Virtual status - The name of the status as it is sent to your contacts. This is done by adding "{...}" at the end of your name.
  • Personal message - A new personal message which will last until you reset your status.
  • Auto-reply message - One or more automatic replies sent to your contacts when they sent you a message while you're in a personal status.
  • Real status - The "real" Messenger status, Away or Busy.
  • Reset status - The period of time to have the status showing.
  • Global hotkey - A hotkey which you can use to quickly select this personal status.
You can save the personal status options using OnEvent_EnterPersonalizedStatus into the registry, but you'll still be missing the status reset time. But then, you can't simply "enter" all those options, like auto-reply message.
RE: [REQUEST] Remember Status by Menthix on 11-10-2007 at 05:04 PM

quote:
Originally posted by The Alpha Gamer
i get a 404 page not found error, re-up please?
Fixed: http://www.msgpluslive.net/scripts/view/24-Remember-Status/