By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,931 Members | 1,976 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,931 IT Pros & Developers. It's quick & easy.

Writing to Registry

P: n/a
I am working with this recipes:
http://aspn.activestate.com/ASPN/Coo...n/Recipe/66011

The problem I am having is setting a hex value.
This line --- SetValueEx(aKey,"MyNewKey",0, REG_SZ,
r"c:\winnt\explorer.exe")
I want something Like -- SetValueEx(aKey,"MyNewSize",0, REG_SZ, 120 or
some value)
Help would be appreciated.
S
Nov 16 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
At Thursday 16/11/2006 20:48, Samantha wrote:
>I am working with this recipes:
http://aspn.activestate.com/ASPN/Coo...n/Recipe/66011

The problem I am having is setting a hex value.
This line --- SetValueEx(aKey,"MyNewKey",0, REG_SZ,
r"c:\winnt\explorer.exe")
I want something Like -- SetValueEx(aKey,"MyNewSize",0, REG_SZ, 120 or
some value)
Usually when you don't know how to use a certain function, you begin
by reading the documentation for it:
http://docs.python.org/lib/module--winreg.html#l2h-5827
--
Gabriel Genellina
Softlab SRL

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ˇgratis!
ˇAbrí tu cuenta ya! - http://correo.yahoo.com.ar
Nov 17 '06 #2

P: n/a
Thanks for the link.
S
"Gabriel Genellina" <ga******@yahoo.com.arwrote in message
news:ma**************************************@pyth on.org...
At Thursday 16/11/2006 20:48, Samantha wrote:
>>I am working with this recipes:
http://aspn.activestate.com/ASPN/Coo...n/Recipe/66011

The problem I am having is setting a hex value.
This line --- SetValueEx(aKey,"MyNewKey",0, REG_SZ,
r"c:\winnt\explorer.exe")
I want something Like -- SetValueEx(aKey,"MyNewSize",0, REG_SZ, 120 or
some value)

Usually when you don't know how to use a certain function, you begin by
reading the documentation for it:
http://docs.python.org/lib/module--winreg.html#l2h-5827
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ˇgratis! ˇAbrí tu
cuenta ya! - http://correo.yahoo.com.ar

Nov 17 '06 #3

P: n/a
Note: this is untested (since I don't like screwing around
in the registry...)

Have you tried using REG_DWORD?

Mark
* Samantha wrote (on 11/16/2006 3:48 PM):
I am working with this recipes:
http://aspn.activestate.com/ASPN/Coo...n/Recipe/66011

The problem I am having is setting a hex value.
This line --- SetValueEx(aKey,"MyNewKey",0, REG_SZ,
r"c:\winnt\explorer.exe")
I want something Like -- SetValueEx(aKey,"MyNewSize",0, REG_SZ, 120 or
some value)
Help would be appreciated.
S

Nov 17 '06 #4

P: n/a
At Thursday 16/11/2006 21:39, Samantha wrote:
http://docs.python.org/lib/module--winreg.html#l2h-5827
Thanks for the link.
Notice that surely you already have the full Python documentation, it
comes with the standard distribution.
--
Gabriel Genellina
Softlab SRL

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ˇgratis!
ˇAbrí tu cuenta ya! - http://correo.yahoo.com.ar
Nov 17 '06 #5

P: n/a
That was the fix.
S

"Mark Elston" <m.******@advantest-ard.comwrote in message
news:12*************@corp.supernews.com...
Note: this is untested (since I don't like screwing around
in the registry...)

Have you tried using REG_DWORD?

Mark
>>

Nov 17 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.