[REQUEST] Remember Status |
Author: |
Message: |
vk3xem
New Member
Communications
Posts: 13
58 / / –
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 |
|
|
Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
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 |
|
|
Chestah
Veteran Member
Posts: 1658 Reputation: 34
36 / / –
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.
|
|
06-26-2006 05:42 AM |
|
|
Silentdragon
Full Member
if(life==null && wrists) EmoAlert();
Posts: 148 Reputation: 2
34 / / –
Joined: Jun 2006
|
RE: [REQUEST] Remember Status
Hmm, made a simple little thing. Stores the status in a txt file, and supports multiple emails.
Attachment: Remember Status.plsc (1.18 KB)
This file has been downloaded 459 time(s).
|
|
06-26-2006 09:55 AM |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
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
EDIT3: Added multiple users support, also updated the plsc file for easy importing.
Attachment: Save Status.plsc (873 bytes)
This file has been downloaded 467 time(s).
This post was edited on 06-26-2006 at 02:16 PM by Ezra.
|
|
06-26-2006 10:34 AM |
|
|
vk3xem
New Member
Communications
Posts: 13
58 / / –
Joined: Nov 2004
|
O.P. RE: [REQUEST] Remember Status
Very nice Ezra. It doesn't remember the Personalised Status but it still works great! 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 |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
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?
---
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! 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 |
|
|
Chestah
Veteran Member
Posts: 1658 Reputation: 34
36 / / –
Joined: Jun 2004
|
RE: [REQUEST] Remember Status
Good idea Cookie . I didn't even think about doing it that way.. or that it would have to switch statuses using my method. nw
|
|
06-26-2006 09:15 PM |
|
|
lizard.boy
Veteran Member
Posts: 1708 Reputation: 24
34 / /
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 |
|
|
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?
---
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! 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 |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|