找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
楼主: kensami727

[其他] 批处理读取本机分辨率判断执行nconvert的困惑

[复制链接]
发表于 2020-10-4 12:27:21 | 显示全部楼层
回复 14# xczxczxcz


    我的Win10测试结果是1280*720,实际设置是2560*1440
发表于 2020-10-4 16:36:06 | 显示全部楼层
回复 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;
复制代码
发表于 2020-10-4 16:39:56 | 显示全部楼层

  1. [System.Reflection.Assembly]::LoadWithPartialName("system.windows.forms")|out-null;
  2. [System.Windows.Forms.Screen]::AllScreens;
复制代码
用这个命令看下显示结果中有2K的尺寸么?
 楼主| 发表于 2020-10-4 18:32:56 | 显示全部楼层
本帖最后由 kensami727 于 2020-10-4 18:35 编辑

捂脸,powershell都出来了。我这没有2k,1920正常。
另外管理员大佬,我使用的是无盘环境没有杀软需求,我1楼编辑的最终版是测试通过的。
BitsPerPixel : 32
Bounds       : {X=0,Y=0,Width=1920,Height=1080}
DeviceName   : \\.\DISPLAY1
Primary      : True
WorkingArea  : {X=0,Y=0,Width=1920,Height=1040}
发表于 2020-10-5 16:03:32 | 显示全部楼层
回复 18# xczxczxcz


我用另外一台笔记本电脑,也是Win10,实际分辨率1920x1080,测试结果如下:

PS C:\> [System.Reflection.Assembly]:oadWithPartialName("system.windows.forms")|out-null;
PS C:\> [System.Windows.Forms.Screen]::AllScreens;


BitsPerPixel : 32
Bounds       : {X=0,Y=0,Width=1280,Height=720}
DeviceName   : \\.\DISPLAY1
Primary      : True
WorkingArea  : {X=0,Y=0,Width=1280,Height=680}
发表于 2020-10-5 19:28:22 | 显示全部楼层
回复 20# Batcher

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

2k 的显示缩放值应该是 200%
1280* 200% = 2560;  720 * 200% = 1440
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-20 05:53 , Processed in 0.017488 second(s), 7 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表