Toggle between "Extend these displays" and "Show desktop only on 1"
Asked Answered
M

1

9

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.

Mathi answered 16/5, 2010 at 21:33 Comment(0)
I
11

If you are still interested in the answer, the shortcut is win+p. You can use Autohotkey for scripting and call autohotkey script from your program. It is a workaround but better than nothing.

Intestine answered 16/9, 2010 at 0:31 Comment(1)
Amaaaaaazing. How did I not know about this? Note: doesn't work in XP or Vista; just a Win7 feature. Maybe that's why :)Mathi

© 2022 - 2024 — McMap. All rights reserved.