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

[REQUEST] Remember Status
Author: Message:
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 450 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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[REQUEST] Remember Status - by vk3xem on 06-26-2006 at 04:43 AM
RE: [REQUEST] Remember Status - by Felu on 06-26-2006 at 05:18 AM
RE: [REQUEST] Remember Status - by Chestah on 06-26-2006 at 05:42 AM
RE: [REQUEST] Remember Status - by Silentdragon on 06-26-2006 at 09:55 AM
RE: [REQUEST] Remember Status - by Ezra on 06-26-2006 at 10:34 AM
RE: [REQUEST] Remember Status - by vk3xem on 06-26-2006 at 01:55 PM
RE: [REQUEST] Remember Status - by CookieRevised on 06-26-2006 at 02:38 PM
RE: RE: [REQUEST] Remember Status - by The Alpha Gamer on 11-10-2007 at 03:40 AM
RE: [REQUEST] Remember Status - by Chestah on 06-26-2006 at 09:15 PM
RE: [REQUEST] Remember Status - by lizard.boy on 06-26-2006 at 10:23 PM
RE: [REQUEST] Remember Status - by waynewilson2 on 11-10-2007 at 05:08 AM
RE: [REQUEST] Remember Status - by Matti on 11-10-2007 at 10:47 AM
RE: [REQUEST] Remember Status - by Menthix on 11-10-2007 at 05:04 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