{Spam?} Re: [Tutor] Regedit

Bob Gailer bgailer at alum.rpi.edu
Sun Oct 3 16:52:24 CEST 2004


At 05:54 AM 10/3/2004, Ali Polatel wrote:
>Thanks for the information
>I found this script there
>
>
>HomePage
>
>
>
><http://www.pythonapocrypha.com/Chapter37/HomePage.py>HomePage.py
>
>import win32api
>import win32con
>
>SubKey="SOFTWARE\\Microsoft\\Internet Explorer\\Main"
>StartPageKey=win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER,
>     SubKey,0,win32con.KEY_ALL_ACCESS)
>(OldURL, ValueType)=win32api.RegQueryValueEx(StartPageKey,
>     "Start Page")
>print OldURL
>NewURL="http://www.google.com"
>win32api.RegSetValueEx(StartPageKey,"Start Page",0,
>     win32con.REG_SZ,NewURL)
>win32api.RegCloseKey(StartPageKey)
>
>This changes a value... how to create a new value?

Look a little further down that page - under Killkey

Bob Gailer
bgailer at alum.rpi.edu
303 442 2625 home
720 938 2625 cell 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20041003/ced2c616/attachment.html


More information about the Tutor mailing list