-1

我想将屏幕 1 的屏幕分辨率设置为1872 x 1248的预定值,然后将缩放设置为 100%,然后从文件夹启动 .exe 文件,一旦 exe 关闭,屏幕自动恢复为3240 x 2160 和 200 % 缩放。

编辑1:

更改计算机分辨率的批处理命令

这个帮助我设置了分辨率,它工作正常:

  ChangeScreenResolution.exe /w=1872 /h=1248 /d=0

allFiles.exe

/wait allFiles.exe 
ChangeScreenResolution.exe /w=3240 /h=2160 /d=0 

但是我根本找不到任何关于如何设置分辨率缩放的资源,这是缺少的一点,我很确定它可以完成,但我不知道怎么做。

怎么做到呢?

谢谢

4

1 回答 1

1

所以感谢@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

谢谢大家,它现在就像一个魅力!

于 2022-01-08T01:20:58.237 回答