lihas / windows-DPI-scaling-sample

App To mimic getting and setting DPI scaling for displays on a system
The Unlicense
109 stars 22 forks source link

comand line? #1

Closed gogolo2 closed 3 years ago

gogolo2 commented 3 years ago

Hi This is a great tool. Is it possible to start DPIScalingMFCApp.exe from command line without gui and set a dpi? Thx!

lihas commented 3 years ago

It certainly can be done. Let me think about it. Would a command line tool be good, or should I expose the API via COM/ATL? both will offer similar functionality.

gogolo2 commented 3 years ago

Thx for your reply! A command line tool would be perfect.

imniko commented 3 years ago

I made a command line only project, though it only has one function, set a custom scaling to a specified monitor. I consider myself a beginner in C++, so a more refined version from the author himself would be nice to have. here is my project link https://github.com/imniko/SetDPI as it is my first project published to github, its not very pretty but it works.

gogolo2 commented 3 years ago

Thx very much, this ist great! The possibility to operate it with AHK is exactely what I wanted to do and gives us so much possibilites. I hope other will find it useful too! Thx again.

lihas commented 3 years ago

Thanks @imniko . I have included a link to your repo on my project's readme page. for those looking for a command line version.