Re: Working with the Windows Registry

2008-06-27 Thread Tim Roberts
teh_sAbEr <[EMAIL PROTECTED]> wrote: >Hi everybody. I'm trying to write a script that'll change desktop >wallpaper every time its run. Heres what I've gotten so far: > >#random wallpaper changer! >import _winreg >from os import walk >from os.path import exists >from random import randint > >#first

Re: Working with the Windows Registry

2008-06-27 Thread Tim Golden
teh_sAbEr wrote: Great! It works properly now but I have one more question, would anyone know how to get the changes to take effect immediately? Like some sort of Python way to force the desktop to reload? AFAIK the only way that'll happen is if I use the Display Properties dialog box. The Regist

Re: Working with the Windows Registry

2008-06-26 Thread s0suk3
On Jun 26, 4:24 am, teh_sAbEr <[EMAIL PROTECTED]> wrote: > Great! It works properly now but I have one more question, would > anyone know how to get the changes to take effect immediately? Like > some sort of Python way to force the desktop to reload? AFAIK the only > way that'll happen is if I use

Re: Working with the Windows Registry

2008-06-26 Thread teh_sAbEr
Great! It works properly now but I have one more question, would anyone know how to get the changes to take effect immediately? Like some sort of Python way to force the desktop to reload? AFAIK the only way that'll happen is if I use the Display Properties dialog box. The Registry value is changed

Re: Working with the Windows Registry

2008-06-25 Thread [EMAIL PROTECTED]
On Jun 25, 10:48 pm, teh_sAbEr <[EMAIL PROTECTED]> wrote: > Hi everybody. I'm trying to write a script that'll change desktop > wallpaper every time its run. Heres what I've gotten so far: > > #random wallpaper changer! > import _winreg > from os import walk > from os.path import exists > from rand

Re: Working with the Windows Registry

2008-06-25 Thread Larry Bates
teh_sAbEr wrote: Hi everybody. I'm trying to write a script that'll change desktop wallpaper every time its run. Heres what I've gotten so far: #random wallpaper changer! import _winreg from os import walk from os.path import exists from random import randint #first grab a registry handle. hand

Re: Working with the Windows Registry

2008-06-25 Thread s0suk3
On Jun 25, 9:48 pm, teh_sAbEr <[EMAIL PROTECTED]> wrote: > Hi everybody. I'm trying to write a script that'll change desktop > wallpaper every time its run. Heres what I've gotten so far: > > #random wallpaper changer! > import _winreg > from os import walk > from os.path import exists > from rando

Working with the Windows Registry

2008-06-25 Thread teh_sAbEr
Hi everybody. I'm trying to write a script that'll change desktop wallpaper every time its run. Heres what I've gotten so far: #random wallpaper changer! import _winreg from os import walk from os.path import exists from random import randint #first grab a registry handle. handle = _winreg.OpenKe