somputer
somputer

Reputation: 245

How can I get control panel display setting on python?

enter image description here

I want to get display setting value on python like:

100% or 125% or 150%

How can I get this set value on python?

Upvotes: 0

Views: 2623

Answers (1)

ρss
ρss

Reputation: 5315

The settings window that you want to access is generally this C:\Windows\System32\DpiScaling.exe executable.

So now you can access this executable by using python. There might be many different ways to do so. In my example I am using the subprocess module.

Code:

import subprocess

def openSettings():
    subprocess.Popen([r"C:\Windows\System32\DpiScaling.exe"])

openSettings()

Upvotes: 1

Related Questions