我想将屏幕1的屏幕分辨率设置为1872 x 1248的预定值,然后将缩放为 100%,然后从文件夹中启动.exe文件,一旦exe关闭,屏幕将自动恢复到3240 x 2160和200%缩放。。
EDIT1:
Batch command to change the resolution of a computer
这一次帮助我制定了决议,而且效果很好:
ChangeScreenResolution.exe /w=1872 /h=1248 /d=0
allFiles.exe
/wait allFiles.exe
ChangeScreenResolution.exe /w=3240 /h=2160 /d=0 但是我找不到任何关于如何设置分辨率缩放的资源,这是一个缺失的部分,我很确定这是可以做到的,但是我不知道怎么做。
怎么做呢?
谢谢
发布于 2022-01-08 01:20:58
因此,感谢@Compo,我想出了如何做到这一点:
https://github.com/imniko/SetDPI
https://tools.taubenkorb.at/change-screen-resolution/
这两种方法对任何感兴趣的人都有好处:
::This bit changes Screen Resolution of Display1 to 1872 x 1248
::ChangeScreenResolution.exe [/w=1872 Horizontal Pixels] [/h=1248 Vertical Pixels] [/d=0 Means Display1]
ChangeScreenResolution.exe /w=1872 /h=1248 /d=0
::This bit changes this bit changes the scaling for Display1 to 125%
:: SetDPI.exe [Display Number 1 - means Display1] [Scaling %]
SetDPI.exe 1 125
::This bit starts allFiles.exe and goes on to the next line ONLY AFTER IT'S CLOSED
allFiles.exe /wait
::This bit sets resolution back to original
::ChangeScreenResolution.exe [/w=3240 Horizontal Pixels] [/h=2160 Vertical Pixels] [/d=0 Means Display1]
ChangeScreenResolution.exe /w=3240 /h=2160 /d=0
::This bit sets scaling back to original
:: SetDPI.exe /[Display Number 1 - means Display1] /[Scaling %]
SetDPI.exe 1 200谢谢各位,现在它就像一种魅力!
https://stackoverflow.com/questions/70628102
复制相似问题