What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Save strings

[Help] Save strings
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [Help] Save strings
or you use the registry.

Easy, multi-user and will be automaticly deleted when the script is removed. (A file in the scripts directory will be deleted too)

code:
function WriteRegistry(key, value)
{
  var Shell = new ActiveXObject("WScript.Shell");
  return Shell.RegWrite(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\" + key, value, "REG_SZ");
}

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

function RemoveRegistry(key)
{
  var Shell = new ActiveXObject("Wscript.Shell");
  return Shell.RegDelete(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\" + key);
}

[Image: 1-0.png]
             
08-03-2006 07:36 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Save strings - by Anton on 08-03-2006 at 04:38 PM
RE: [Help] Save strings - by Huhu_Manix on 08-03-2006 at 06:24 PM
RE: [Help] Save strings - by Ezra on 08-03-2006 at 07:36 PM
RE: RE: [Help] Save strings - by Anton on 08-04-2006 at 01:50 PM
RE: [Help] Save strings - by Huhu_Manix on 08-04-2006 at 01:56 PM
RE: [Help] Save strings - by RaceProUK on 08-04-2006 at 01:58 PM
RE: [Help] Save strings - by Anton on 08-04-2006 at 02:38 PM
RE: [Help] Save strings - by -dt- on 08-04-2006 at 03:13 PM
RE: [Help] Save strings - by Anton on 08-08-2006 at 07:16 PM
RE: [Help] Save strings - by Shondoit on 08-08-2006 at 08:19 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