The Rickster <
sled...@gmail.com> wrote:
> Need: programmatically change Windows scaling percentage.
> Background:
> Windows Display Settings provides for one to manually change the display scaling.
> The value of the current pixels per point is accessible with the tcl
> command 'tk scaling'. However, using this command does not change
> the windows scaling factor (as described in the docs).
Where in the docs do you see that "tk scaling" would change the windows
system scaling setting? The docs say "Sets and queries the current
scaling factor used by Tk to convert between physical units (for
example, points, inches, or millimeters) and pixels."
The very important part of that sentence is "used by Tk" -- note this
is not saying "used by ms-windows".
> I was unable to locate a command in the twapi package that would do
> so.
If there is none in twapi, you might have no way to do so from inside a
Tcl script.
> Would appreciate any insight as to how one might change the Windows
> scaling percentage value.
Use the Windows Control Panel.
If you meant to add "... from a Tcl script" then there may be no way to
do so.
And, myself, I'd be most pertubed at a windows program that decided it
was going to change the system scale factor unilaterally. That value
impacts all running programs on the system, not just a single app that
wants to mess around with it. My preference would be: "programs do not
change that value, ever".