如何使用 VBscript 确定连接到计算机的显示器是 LCD 还是 CRT?
我正在尝试向 VBscript 添加信息,以确定连接到当前计算机的显示器是 LCD 还是 CRT。 我知道我可以从 HKLM\System\CCS\Enum\DISPLAY 获取 EDID 信息,但我无法使用它来确定显示器类型。 我可以从 WMI 类 Win32_DesktopMonitor、Win32_DisplayConfiguration 和 Win32_VideoController 获取的唯一一致信息是屏幕分辨率和刷新率。 有些屏幕分辨率通常仅由 LCD 使用(例如宽屏),但这并不可靠。
无需构建型号名称表,如何确定显示器是 LCD 还是 CRT?
I am trying to add info to a VBscript that will determine if the monitor(s) connected to the current machine is an LCD or CRT. I know I can get the EDID info from HKLM\System\CCS\Enum\DISPLAY but I can't use that to determine the monitor type. And the only consistent info I can grab from the WMI classes Win32_DesktopMonitor, Win32_DisplayConfiguration, and Win32_VideoController are the screen resolution and refresh rate. There are some screen resolutions that are usually only used by LCDs (like widescreen ones), but that is not reliable.
Without having to build a table of model names, what can I do to determine if the monitor is an LCD or CRT?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用的是 Vista,您可以深入了解此功能 - 获取监视器技术类型。
我猜想这应该可以通过 COM 供 VBScript 使用。
If you're on Vista you can dig way down into this function - GetMonitorTechnologyType.
I'm guessing this should be available to VBScript via COM.