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

Read Full Registry
Author: Message:
Rene
Junior Member
**


Posts: 25
Joined: Jun 2006
O.P. Read Full Registry
Hi,

Ik got an Registry folder named 'info'
but i want that the script make an array with al the value's inside the 'info' Registry Folder.

Is this possible ?

[ I'm dutch ]

Dutch:

Ey,

Ik heb een Registry map genaamd 'info'
maar ik wil dat het script een array aanmaakt waarin alle value's uit de 'info' map in staan.

Is dit mogelijk ?
06-29-2006 10:28 AM
Profile E-Mail PM Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: Read Full Registry
Hello there :tongue:. I found this page yesterday which basiclly should sum up using the registry in JScript :).
06-29-2006 10:30 AM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Read Full Registry
quote:
Originally posted by absorbation
Hello there :tongue:. I found this page yesterday which basiclly should sum up using the registry in JScript :).

Sure that gives one specified value, but he want's to get all the values from one key.
[Image: 1-0.png]
             
06-29-2006 10:37 AM
Profile PM Web Find Quote Report
Rene
Junior Member
**


Posts: 25
Joined: Jun 2006
O.P. RE: Read Full Registry
I know How to do read and Write, but is it possible to let an script reading the Registry folder en set al the value's into an array.

With RegRead is only possible to read one.
06-29-2006 10:39 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Read Full Registry
quote:
Originally posted by absorbation
Hello there :tongue:. I found this page yesterday which basiclly should sum up using the registry in JScript :).
that wont help.

The registry activex object is very very limited. It can not be used for what Rene wants.

RegWrite, RegRead and RegDelete are the only ones that JScript knows and those methods are very, and I mean very, limited.

eg:
  • You can not check if a registry key exists or not with RegRead; it will produce an error. => can be worked around using error checking.
  • You can not write bigger values than a DWORD to a binary registry value (this means no binary data strings for example)
  • You can not write a REG_MULTI_SZ value with RegWrite
  • You can not enumerate registry keys
  • and the list goes on...

To do more than simple reading a known value, you need to revert to the registry Windows APIs and enumeration.

@Rene

Can't you just simply export that registry map within Windows registry editor? What's the purpose of your request?

This post was edited on 06-29-2006 at 10:50 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-29-2006 10:40 AM
Profile PM Find Quote Report
Rene
Junior Member
**


Posts: 25
Joined: Jun 2006
O.P. RE: RE: Read Full Registry
quote:
Originally posted by CookieRevised
  • You can not check if a registry key exists or not with RegRead; it will produce an error. => can be worked around using error checking.


That's not realy true, it is possible with try and catch, without error.

quote:
Originally posted by CookieRevised
@Rene

Can't you just simply export that registry map within Windows registry editor? What's the purpose of your request?


No, i need it for an List view, and DataBlocks i don't know realy.

This post was edited on 06-29-2006 at 10:58 AM by Rene.
06-29-2006 10:50 AM
Profile E-Mail PM Find Quote Report
J-Thread
Full Member
***

Avatar

Posts: 467
Reputation: 8
– / Male / –
Joined: Jul 2004
RE: RE: RE: Read Full Registry
quote:
Originally posted by Rene
quote:
Originally posted by CookieRevised
  • You can not check if a registry key exists or not with RegRead; it will produce an error. => can be worked around using error checking.

That's not realy true, it is possible with try and catch, without error.

Next time click the link that Cookie posted!!
06-29-2006 10:55 AM
Profile E-Mail PM Find Quote Report
Mr. Bougo
Junior Member
**


Posts: 51
33 / Male / –
Joined: Jun 2006
RE: Read Full Registry
And if he calls his registry values 1, 2, 3 etc and adds a value with the total number of values in the key, then use a for loop to read them all and store them in an array?
06-29-2006 11:33 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Read Full Registry
I am actally working on this for my registry module that I have going. If I make any headway or if I can get it working I will PM you.
06-29-2006 01:16 PM
Profile E-Mail PM Find Quote Report
« 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