What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » RegWrite Causing Errors?

RegWrite Causing Errors?
Author: Message:
R4000
Junior Member
**

W2M - GD Script Creator

Posts: 44
33 / Male / –
Joined: May 2006
RE: RegWrite Causing Errors?
I suggest reg functions like:

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


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

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

then you have error catching if the key doesnt exist and you try to read it or w/e
(its wierd but i try to read b4 i write :P)
[Image: msnsig/]
This image stops working when my PC is off, it isn't bad coding :)
The source to the image above. | MSN: peter@gsf.tv
09-14-2006 05:04 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
RegWrite Causing Errors? - by Spunky on 09-14-2006 at 04:28 PM
RE: RegWrite Causing Errors? - by Matti on 09-14-2006 at 04:39 PM
RE: RegWrite Causing Errors? - by R4000 on 09-14-2006 at 05:04 PM
RE: RegWrite Causing Errors? - by Spunky on 09-14-2006 at 05:12 PM
RE: RegWrite Causing Errors? - by phalanxii on 09-15-2006 at 12:02 AM
RE: RE: RegWrite Causing Errors? - by CookieRevised on 09-15-2006 at 10:16 AM
RE: RegWrite Causing Errors? - by phalanxii on 09-15-2006 at 01:14 PM
RE: RE: RegWrite Causing Errors? - by CookieRevised on 09-15-2006 at 10:03 PM
RE: RegWrite Causing Errors? - by Matti on 09-15-2006 at 01:17 PM
RE: RegWrite Causing Errors? - by Spunky on 09-15-2006 at 10:18 PM
RE: RegWrite Causing Errors? - by CookieRevised on 09-15-2006 at 10:20 PM
RE: RegWrite Causing Errors? - by Spunky on 09-15-2006 at 10:22 PM
RE: RE: RE: RegWrite Causing Errors? - by phalanxii on 09-15-2006 at 10:25 PM
RE: RE: RE: RE: RegWrite Causing Errors? - by CookieRevised on 09-15-2006 at 10:29 PM
RE: RegWrite Causing Errors? - by Spunky on 09-15-2006 at 10:28 PM
RE: RegWrite Causing Errors? - by phalanxii on 09-15-2006 at 10:33 PM
RE: RegWrite Causing Errors? - by Spunky on 09-15-2006 at 10:34 PM
RE: RegWrite Causing Errors? - by CookieRevised on 09-15-2006 at 10:37 PM
RE: RegWrite Causing Errors? - by Spunky on 09-15-2006 at 10:40 PM
RE: RegWrite Causing Errors? - by CookieRevised on 09-15-2006 at 10:43 PM
RE: RegWrite Causing Errors? - by Spunky on 09-15-2006 at 10:52 PM
RE: RegWrite Causing Errors? - by CookieRevised on 09-15-2006 at 10:57 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