Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imniko/SetDPI
https://github.com/imniko/SetDPI
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/imniko/SetDPI
- Owner: imniko
- License: unlicense
- Created: 2020-09-05T17:09:21.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-19T06:32:23.000Z (about 1 year ago)
- Last Synced: 2023-11-08T01:56:24.992Z (about 1 year ago)
- Language: C++
- Size: 54.3 MB
- Stars: 234
- Watchers: 10
- Forks: 34
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SetDPI
This is a sample and simple C++ console project to change windows Scale and Layout aka DPI scaling from command line parameters. It can work on single and multi-monitor setup.
## How to use
It takes up to 2 parameters, first being the scale in percent. The second argument is the monitor index, which you get from windows display settings, if you click identify it shows you the index.
`SetDPI.exe [DPI scale value] [monitor index]`
If you have only one monitor or want only main monitor to change you can omit the monitor index.
To get the current scale of a monitor, replace the scale argument with `get` to print the current scaling. For automation with `value` only the scale is printed.
## Examples
- To set 2nd monitor to a scale value of 250
- `SetDPI.exe 250 2`
- To set main monitor to a scale value of 125
- `SetDPI.exe 125`
- To get the scale of the 2nd monitor
- `SetDPI.exe get 2` prints `Current Resolution: 250`
- `SetDPI.exe value 2` prints `250`## Release
Get the release build and a sample AutoHotkey script with hotkey example from here https://github.com/imniko/SetDPI/releases/
## Credits
The whole credits go to @lihas of this project, https://github.com/lihas/windows-DPI-scaling-sample it was not possible without his findings.