Mar-30-2017, 09:41 AM
Mar-30-2017, 09:52 AM
What OS do you use? What kind of details?
Mar-30-2017, 10:01 AM
While I don't know what are the exact details/properties you are looking for, a quick search gave me these results which may help you:
Screen resolution:
http://stackoverflow.com/questions/31293...-in-python
Refresh rate, colour, bits per pixel:
http://stackoverflow.com/questions/12250...fresh-rate
Screen resolution:
http://stackoverflow.com/questions/31293...-in-python
Refresh rate, colour, bits per pixel:
http://stackoverflow.com/questions/12250...fresh-rate
Mar-30-2017, 10:42 AM
OS : window
Python 2.7
Looking for device name
Python program that automatically finds and identifies multiple display devices connected to my computer (Windows)
Python 2.7
Looking for device name
Python program that automatically finds and identifies multiple display devices connected to my computer (Windows)
Mar-30-2017, 11:52 AM
See thisĀ on SO.
Also, I don't if it's there but it is, you may try to take that info from the registry.
Also, I don't if it's there but it is, you may try to take that info from the registry.
Mar-30-2017, 12:57 PM
I have tried below code
import subprocess import re proc = subprocess.Popen(['powershell', 'Get-WmiObject win32_desktopmonitor;'], stdout=subprocess.PIPE) res = proc.communicate() monitors = re.findall('(?s)\r\nName\s+:\s(.*?)\r\n', res[0].decode("utf-8")) print(monitors)But getting only one display device detail.Actually system is connected to EDP and VGA.
Moderator Larz60+: Removed formatting and added python tags -- please remember these
May-10-2017, 06:00 AM
import wmi obj = wmi.WMI().Win32_PnPEntity(ConfigManagerErrorCode=0) print obj displays = [x for x in obj if 'DISPLAY' in str(x)] for item in displays: print item