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

Pages: (2): « First [ 1 ] 2 » Last »
Settings Manager
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. Settings Manager
Is it possible to make a script that can list (or enumerate, whatever :P) the sub-keys in the HKEY_CURRENT_USER\Software\Patchou\Messenger Plus! Live\GlobalSettings\Scripts key? (I guess listing the folders in the Scripts folder would give me the information I need to read settings in most cases)

I'm planning to make each scripts settings editable from a single window :D

If it's possible, i'm hoping to make it support settings saved in files too...

This post was edited on 10-05-2006 at 05:28 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-05-2006 05:27 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Settings Manager
code:
function OnEvent_Initialize(MessengerStart){
    var aKeys = new Array();
    aKeys = EnumRegistryKeys(HKEY_CURRENT_USER, 'Software\\Patchou\\Messenger Plus! Live\\GlobalSettings\\Scripts');
    for (var i in aKeys){
        Debug.Trace(aKeys[i]);
    }
}

.zip File Attachment: _registry.zip (1.71 KB)
This file has been downloaded 1049 time(s).

This post was edited on 10-05-2006 at 06:36 PM by matty.
10-05-2006 06:19 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: Settings Manager
Thankyou! lol That seems to easy though ;)

EDIT: HKEY_CURRENT_USER is undefined :p

I'll see if I can find out an alternative keyword. Also, is there a way to navigate one key up from the MsgPlus.ScriptRegPath rather than using a string value as they may have installed to a different location

This post was edited on 10-05-2006 at 06:36 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-05-2006 06:33 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Settings Manager
quote:
Originally posted by SpunkyLoveMuff
Thankyou! lol That seems to easy though ;)
Of course cause I made the registry script makes it really easy. I updated the code because I realized its GlobalSettings not Global Settings.

quote:
Originally posted by SpunkyLoveMuff
I'll see if I can find out an alternative keyword. Also, is there a way to navigate one key up from the MsgPlus.ScriptRegPath rather than using a string value as they may have installed to a different location

The location of the registry keys will not change.

quote:
Originally posted by SpunkyLoveMuff
EDIT: HKEY_CURRENT_USER is undefined :P
Make sure to extract _registry.js to your script folder and resave the script so it detects the module. (Or logout and relog back in.)

This post was edited on 10-05-2006 at 06:39 PM by matty.
10-05-2006 06:36 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: Settings Manager
Yay you! :D Itworks :p
<Eljay> "Problems encountered: shit blew up" :zippy:
10-05-2006 06:46 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Settings Manager
quote:
Originally posted by SpunkyLoveMuff
Yay you! :D Itworks :p
Welcome,

Just a reminder, most scripts store their values in memory so changing the registry values will not make any changes.

Don't forget to rep *cough cough*.

This post was edited on 10-05-2006 at 06:58 PM by matty.
10-05-2006 06:58 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: Settings Manager
quote:
Originally posted by Matty
Don't forget to rep *cough cough*.

lol. As for the settings being stored in memory, I'm just making this so that users can edit settings from one place. The script would most likely need to be restarted for the changes to take effect :p

EDIT: btw, having trouble with the EnumRegValues returning undefined :s

This post was edited on 10-05-2006 at 07:57 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-05-2006 07:56 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Settings Manager
code:
function OnEvent_Initialize(MessengerStart){
    var aKeys = new Array();
    var aKeyValues = new Array();
    aKeys = EnumRegistryKeys(HKEY_CURRENT_USER, 'Software\\Patchou\\Messenger Plus! Live\\GlobalSettings\\Scripts');
    for (var i in aKeys){
        Debug.Trace(aKeys[i]);
        aKeyValues = EnumRegistryValues(HKEY_CURRENT_USER, 'Software\\Patchou\\Messenger Plus! Live\\GlobalSettings\\Scripts\\'+aKeys[i]);
        for (var j in aKeyValues){
            Debug.Trace('  '+aKeyValues[j]);
        }
    }
}

This post was edited on 10-06-2006 at 05:27 AM by matty.
10-05-2006 09:16 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: Settings Manager
Hmmm... the code works fine, except for when trying to read the values from the Settings keys. It can read if the script is enabled or not, but it can't move onto the next level and check the scripts settings without making WLM crash... Any ideas?

EDIT: In some cases it will read settings from the first script it comes across... and then quit.

This post was edited on 10-07-2006 at 06:59 AM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-07-2006 06:54 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Settings Manager
It wasn't ment to do that but if you really want it I can do it.
10-07-2006 12:56 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


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