WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Detecting Dual Monitors


Question:

Any ideas on how to test if a system is running dual monitors?

I have a script that will depending on your screen resolution and if you’re running dual monitors place a dialog either on the main monitor or the 2nd monitor. The only problem is I can not find something to "key on" to determine if dual monitors are being used on the system. I can test for the screen resolution by using:

Width = WinMetrics(0)
Hight = WinMetrics(1)
I have been looking in the registry and have found the HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\VIDEO Key that shows all the drivers/video devices on the system but nothing stands out that I can "key on" to see if dual monitors are being used.

If anyone has someway of determining this I would be grateful

Answer:

Maybe try using WinMetrics Option 80.
nummonitors = WinMetrics( 80 )
Message( "Number of Monitors", nummonitors )

Article ID:   W16992
File Created: 2007:07:03:14:27:30
Last Updated: 2007:07:03:14:27:30