What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » python reg read

2 votes - 3 average   python reg read
Author: Message:
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: python reg read
what do you mean it doesn't help? it outlines all the methods.

code:
import _winreg

registry = _winreg.ConnectRegistry(None, _winreg.HKEY_CURRENT_USER)
key = _winreg.OpenKey(registry, r"Software\Paint.NET")
print _winreg.QueryValueEx(key, "ColorsForm.SnappedTo")


as specified in the documentation, you get a tuple back:

(u'appWorkspace', 1)

the first item being the value, the second the type (1 = REG_SZ).

if you need to do something more complicated like enumerate a key, then use the appropriate method on the page. I don't know how to help you when all the help you need is there.

This post was edited on 12-16-2008 at 02:57 AM by segosa.
The previous sentence is false. The following sentence is true.
12-16-2008 02:54 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
python reg read - by Jarrod on 11-26-2008 at 11:20 AM
RE: python reg read - by segosa on 12-16-2008 at 01:51 AM
RE: python reg read - by Jarrod on 12-16-2008 at 02:08 AM
RE: python reg read - by segosa on 12-16-2008 at 02:54 AM
RE: python reg read - by TheSteve on 12-16-2008 at 02:59 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