[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
抓机器分辨率:
  1. [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms");
  2. $width=[System.Windows.Forms.SystemInformation]::PrimaryMonitorSize.Width;
  3. $height=[System.Windows.Forms.SystemInformation]::PrimaryMonitorSize.Height;
复制代码
QQ: 己阵亡
脚本优先 [PowerShell win10]

TOP

回复 16# Batcher


    这个? 分屏了?偶的1920*1080是没问题。

看这个在2K下正常么,或者偶得去2K下试试,看有什么玄机。
  1. [System.Reflection.Assembly]::LoadWithPartialName("system.windows.forms")|out-null;
  2. $w=[System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Width;
  3. $h=[System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Height;
复制代码
QQ: 己阵亡
脚本优先 [PowerShell win10]

TOP

  1. [System.Reflection.Assembly]::LoadWithPartialName("system.windows.forms")|out-null;
  2. [System.Windows.Forms.Screen]::AllScreens;
复制代码
用这个命令看下显示结果中有2K的尺寸么?
QQ: 己阵亡
脚本优先 [PowerShell win10]

TOP

回复 20# Batcher

你的显示缩放值应该是 150%,
1280 * 1.5 = 1920;  720 * 1.5 = 1080

2k 的显示缩放值应该是 200%
1280* 200% = 2560;  720 * 200% = 1440
QQ: 己阵亡
脚本优先 [PowerShell win10]

TOP

返回列表