[python-win32] Re: Python-win32 Digest, Vol 13, Issue 28
Tony Cappellini
tony at tcapp.com
Fri Apr 30 15:43:46 EDT 2004
> Message: 1
> Date: Thu, 29 Apr 2004 13:14:32 -0600
> From: Bob Gailer <bgailer at alum.rpi.edu>
> Subject: [python-win32] HOW TO change Display Properties -> Settings
> -> Screen area
> To: <python-win32 at python.org>
> Message-ID: <6.0.0.22.0.20040429131155.0391feb8 at mail.mric.net>
> Content-Type: text/plain; charset="us-ascii"; format=flowed
>
> How can I programmatically change Display Properties -> Settings -> Screen
> area (using the win api?)?
>
> Bob Gailer
> bgailer at alum.rpi.edu
> 303 442 2625 home
> 720 938 2625 cell
>
>
Bob
After having done something similar, just these past few weeks, I would
suggest that you look to see if anything gets changed in the registry,
when you change your display properties, AS WELL AS, looking in system32
for an INI file that gets written to when you change your display
properties. (I would expect INI file changes instead of the registry, in
your case, but you may want to look in both places)
I wanted to be able to control a checkbox in a Control Panel Applet, and
was
expecting that I had to write some code to open up the Control Panel
Applet, change tabs, then check/uncheck the checkbox. It turned out to be
totally different.
On Win98, the bit I needed to change (which was displayed as a Check Box
in a control panel applet) was in the registry.
On Win2K, the EXACT same bit, was in an INI file in System32.
So I had to write a few classes to abstract the OS-level differences from
the top-level application.
Please let me know what you find out, because I want to fiddle with some
Screensaver bits under the Diplay Properties, as soon as I finish this
program
More information about the Python-win32
mailing list