Toggle between "Extend these displays" and "Show desktop only on 1"
Posted
by Clayton Hughes
on Stack Overflow
See other posts from Stack Overflow
or by Clayton Hughes
Published on 2010-05-16T21:33:29Z
Indexed on
2010/05/16
21:40 UTC
Read the original article
Hit count: 737
windows-7
|multiple-monitors
I'm looking for a way to programmatically alter the video properties in Windows 7. I'd like to toggle the Multiple display state (as seen in Control Panel > Appearances and Personalization > Display > Screen Resolution) between "Extend these displays" and "Show desktop only on 1".
This is the sort of thing that I think is probably doable just by knowing the right Windows executable/dll to invoke with the right parameters and bundling that into a script or shortcut, but if so that information eludes me.
Actual code solutions are fine, of course, but I'd like the change to be permanent and not just disable the other monitor(s) for the duration of the application.
© Stack Overflow or respective owner