如何在Windows中获取显示器的显示名称和分辨率

时间:2017-06-23 12:51:09

标签: python windows multiple-monitors

当系统中有多个监视器时,是否有任何可能的方法来获取监视器的显示名称。我使用screeninfo模块中的get_monitors来获取监视器的分辨率。是否可以获取显示名称以及分辨率?

1 个答案:

答案 0 :(得分:0)

我担心你使用的模块只显示物理屏幕的位置和大小。

您可以尝试使用Powershell和subprocess来启动ps命令并解析它们的输出,如下所示: How to get info of all monitors with Python on Windows?