windows - Find and identify multiple display devices (monitors) using Python -


i write python program automatically finds , identifies multiple display devices connected computer (windows). further programmatically start display session (for example slide show) in 1 of devices. ideas how can done?

thank you,

indranil.

here links related questions (not exact question):

  1. how monitor resolution in python?

  2. how query native hardware resolution of primary monitor in windows?

import wmi obj = wmi.wmi().win32_pnpentity(configmanagererrorcode=0)  displays = [x x in obj if 'display' in str(x)]  item in displays:    print item 

it gives connected monitor details.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -