Shoutbox

[Q] Settings - 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: [Q] Settings (/showthread.php?tid=69455)

[Q] Settings by Sander112 on 12-13-2006 at 04:50 PM

Hello,
Im finally updating ContactSay, and I want to add an Settings feature to enable and disable some things.
How can I do this?
I would like an small example.

Thanks


RE: [Q] Settings by Jimbo on 12-13-2006 at 04:51 PM

Use xml to design the window, then give each feature an id and then call the id into a script ( hard to explain lol)]
Read documentation


RE: [Q] Settings by Sander112 on 12-13-2006 at 04:52 PM

I know that, but I mean the saving and reading part.


RE: [Q] Settings by Spunky on 12-13-2006 at 04:54 PM


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

function ReadReg(key){
    return new ActiveXObject("WScript.Shell").RegRead(MsgPlus.ScriptRegPath + Messenger.MyUserID + "\\" + key);
}

Save and retrieve settings from the registry (there are also other posts with this information if you search)
RE: [Q] Settings by Felu on 12-13-2006 at 04:54 PM

You could use the registry to save setting. See The Registry @ mpwiki.


RE: [Q] Settings by Sander112 on 12-13-2006 at 04:56 PM

Aha. Thanks, didnt know about the Wiki.