What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [HELP] Reading Reg Keys

[HELP] Reading Reg Keys
Author: Message:
noroom
Full Member
***

Avatar
www.noroom.tk

Posts: 107
Reputation: 4
Joined: Sep 2003
O.P. [HELP] Reading Reg Keys
I'm trying to read a REG_BINARY registry key, and it just won't work.

This is the key I'm trying to read:
HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\PerPassportSettings\<NUMBER>\Sounds\MSNMSGR_Buzz\Path

And this is the code I'm using:

   
quote:
var Shell = new ActiveXObject("WScript.Shell");
   
    var path = "HKCU\\Software\\Microsoft\\MSNMessenger\\PerPassportSettings\\" + Messenger.MyUserId + "\\Sounds\\MSNMSGR_";
    var keys = Array(path+"Buzz");

        var enabled = Shell.RegRead(keys[0]+"\\Enabled");
        var test = Shell.RegRead(keys[0]+"\\Path");
       
        Debug.Trace("Path: " + test + " E: " + enabled);

"Enabled" works just fine, but Path doesn't. I found out that after trying to read that key, the typeof test is "unknown" as opposed to "undefined". I think that means it does contain some information. Help?

(Ignore the Array() part, I cut if off because it's not necessary to find/fix the problem)

Dear god, please make someone fix the code tags so indentation is preserved.
07-08-2006 03:55 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[HELP] Reading Reg Keys - by noroom on 07-08-2006 at 03:55 PM
RE: [HELP] Reading Reg Keys - by J-Thread on 07-08-2006 at 04:10 PM
RE: [HELP] Reading Reg Keys - by hmaster on 07-08-2006 at 04:11 PM
RE: [HELP] Reading Reg Keys - by noroom on 07-08-2006 at 06:20 PM
RE: [HELP] Reading Reg Keys - by foaly on 07-08-2006 at 06:27 PM
RE: [HELP] Reading Reg Keys - by noroom on 07-08-2006 at 06:38 PM
RE: [HELP] Reading Reg Keys - by foaly on 07-08-2006 at 06:44 PM
RE: [HELP] Reading Reg Keys - by noroom on 07-08-2006 at 07:58 PM
RE: [HELP] Reading Reg Keys - by J-Thread on 07-08-2006 at 08:16 PM
RE: [HELP] Reading Reg Keys - by noroom on 07-09-2006 at 11:11 AM


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