What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [REQUEST] Remember Status

Pages: (2): « First [ 1 ] 2 » Last »
[REQUEST] Remember Status
Author: Message:
vk3xem
New Member
*

Avatar
Communications

Posts: 13
57 / Male / –
Joined: Nov 2004
O.P. [REQUEST] Remember Status
Is it possible to have a script that will remember your last status so when WML restarts it will return to that status?
The views I present are that of my own and NOT of any organisation I may belong to.

73 de Simon, VK3XEM.
06-26-2006 04:43 AM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: [REQUEST] Remember Status
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.
06-26-2006 05:18 AM
Profile E-Mail PM Web Find Quote Report
Chestah
Veteran Member
*****

Avatar

Posts: 1658
Reputation: 34
35 / Male / –
Joined: Jun 2004
RE: [REQUEST] Remember Status
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.
Segosa is newb.
06-26-2006 05:42 AM
Profile E-Mail PM Web Find Quote Report
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: [REQUEST] Remember Status
Hmm, made a simple little thing. Stores the status in a txt file, and supports multiple emails.

.plsc File Attachment: Remember Status.plsc (1.18 KB)
This file has been downloaded 436 time(s).
06-26-2006 09:55 AM
Profile E-Mail PM Web Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [REQUEST] Remember Status
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.

.plsc File Attachment: Save Status.plsc (873 bytes)
This file has been downloaded 444 time(s).

This post was edited on 06-26-2006 at 02:16 PM by Ezra.
[Image: 1-0.png]
             
06-26-2006 10:34 AM
Profile PM Web Find Quote Report
vk3xem
New Member
*

Avatar
Communications

Posts: 13
57 / Male / –
Joined: Nov 2004
O.P. RE: [REQUEST] Remember Status
Very nice Ezra.  It doesn't remember the Personalised Status but it still works great!    (Y)    Thanks.

The views I present are that of my own and NOT of any organisation I may belong to.

73 de Simon, VK3XEM.
06-26-2006 01:55 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [REQUEST] Remember Status
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/

This post was edited on 12-24-2006 at 03:42 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-26-2006 02:38 PM
Profile PM Find Quote Report
Chestah
Veteran Member
*****

Avatar

Posts: 1658
Reputation: 34
35 / Male / –
Joined: Jun 2004
RE: [REQUEST] Remember Status
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
Segosa is newb.
06-26-2006 09:15 PM
Profile E-Mail PM Web Find Quote Report
lizard.boy
Veteran Member
*****

Avatar

Posts: 1708
Reputation: 24
33 / Male / Flag
Joined: Mar 2003
RE: [REQUEST] Remember Status
I never would have thought of that, but thats an awesome idea. Thanks guys, I'm using it now.
06-26-2006 10:23 PM
Profile E-Mail PM Find Quote Report
The Alpha Gamer
Junior Member
**


Posts: 31
Joined: Sep 2007
RE: RE: [REQUEST] Remember Status
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?
11-10-2007 03:40 AM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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