如何使用 VBscript 确定连接到计算机的显示器是 LCD 还是 CRT?

发布于 2024-07-26 05:20:01 字数 305 浏览 3 评论 0原文

我正在尝试向 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倾听心声的旋律 2024-08-02 05:20:01

如果您使用的是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文