Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find monitor instance name , device name , resolution and frequency of multiple monitors

Status
Not open for further replies.

sumiths

Programmer
Apr 1, 2015
2
IN
hi,


In my system multiple monitors are connected (VGA and HDMI). In need to know the monitor instance name , device name , resolution and frequency of each monitor.. any solution?


i used wm class 'WmiMonitorConnectionParams' to determine Video output technology connection type and InstanceName.

But i didn't get the device name , resolution and frequency of each monitor.??


There are other wmi class like :

WmiMonitorBrightnessEvent
WmiMonitorConnectionParams
WmiMonitorRawEEdidV1Block
WmiMonitorListedFrequencyRanges
WmiMonitorDigitalVideoInputParams
WmiMonitorAnalogVideoInputParams
WmiMonitorID
WmiMonitorBrightnessMethods
WmiMonitorBasicDisplayParams
WmiMonitorColorCharacteristics
WmiMonitorDescriptorMethods
WmiMonitorListedSupportedSourceM…
WmiMonitorBrightness
WmiMonitorColorXYZinCIE
WmiMonitorSupportedDisplayFeatures

WmiMonitorBasicDisplayParams
Win32_VideoController
Win32_VideoConfiguration
Win32_VideoSettings
Win32_DisplayControllerConfiguration
Win32_DisplayConfiguration



But unable to determine monitor having its corresponding values? please help me to find a solution .



thank you
 
Getting the resolution is a tricky one.The way I did it in VBScript for an inventory script that gather much of what you are looking for is I had to use Internet Explorer to get the max size.

Here is how I did it.
Code:
Set IE = CreateObject("internetexplorer.application")
IE.Visible = False
With Createobject("internetexplorer.application")
.navigate "about:blank"
With .document.parentWindow.screen
iHeight = .height
iWidth = .width
End With
End With
IE.Quit
Resolution = iWidth & "x" & iHeight
report = "Video Resolution: " & Resolution

I hope that helps.

Regards,

Mark

No trees were harmed in posting this message, however a significant number of electrons were terribly inconvenienced.

Check out my scripting solutions at
Work SMARTER not HARDER.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top