Command to switch betwn 'Extend Desktop to this display' and 'Disconne


  1. Posts : 248
    Windows 10 Pro
       #1

    Command to switch betwn 'Extend Desktop to this display' and 'Disconne


    I was given a couple of extra computer monitors which are beyond great when you need the extra space but often are not needed. When they're not needed I keep them off but then the cursor sometimes disappears onto one of them. Is it possible to set up a script to switch the display setting between 'Extend Desktop to this display' and 'Disconnect this display' without going to the Windows Display Settings?
      My Computer


  2. Posts : 2,730
    Windows 10
       #2

    Just go to Notifications Centre > Project, and select there.

    You can choose what to display in there by going to Windows 10 Settings > System > Notifications & Actions > Quick Actions > Add/Remove to suit.
      My Computer


  3. Posts : 248
    Windows 10 Pro
    Thread Starter
       #3

    I don't want to do that. I want to set up physical switches on my desk that I can use to turn on and off monitors as I need them and your solution doesn't permit that. I need commands that can be set up in a batch file or something.
      My Computer


  4. Posts : 15,041
    Windows 10 IoT
       #4

    For PC only it's C:\Windows\System32\DisplaySwitch.exe /internal
    For extend it's C:\Windows\System32\DisplaySwitch.exe /extend
    I have shortcuts on my taskbar to do both of the above.
    Command to switch betwn 'Extend Desktop to this display' and 'Disconne-dd-capture.png
      My Computer


  5. Posts : 15,041
    Windows 10 IoT
       #5

    The keyboard short cut to do it is Windows Logo key + P then select what mode you want. A lot easier than going to the notifications area, if your just switching modes.
      My Computer


  6. Posts : 248
    Windows 10 Pro
    Thread Starter
       #6

    alphanumeric said:
    The keyboard short cut to do it is Windows Logo key + P then select what mode you want. A lot easier than going to the notifications area, if your just switching modes.
    Thanks but how does this work if you have four monitors and won't be able to turn them on and off individually?
      My Computer


  7. Posts : 15,041
    Windows 10 IoT
       #7

    THX1138 said:
    Thanks but how does this work if you have four monitors and won't be able to turn them on and off individually?
    I run triple monitors. When gaming I only use my main center monitor. I switch to PC only and my other two stop displaying. The one set as your main monitor is the one that stays on. I can leave the other two on or turn them of. Either way my cursor will never go onto them. As far as Windows is concerned they are not there. When I'm done gaming I switch back to Extend and all three are usable again. I do it with the shortcuts I posted above.

    On my laptop I just use the + P if I have my USB monitor plugged in. I hardly ever switch modes on it.

    Just pointing out that + P is the keyboard shortcut to the display modes menu.
      My Computer


  8. Posts : 248
    Windows 10 Pro
    Thread Starter
       #8

    Thanks. Unfortunately, I use my monitors in all kinds of configurations depending on what I'm doing (e.g. standing up but web browsing, I want to use only a top monitor; video editing, I want to use three monitors unless I want to follow instructions in which case all four; video gaming, just my primary monitor plus all kinds of nuanced tasks that require varying amounts of screen space) so I want to make it easier to alter configurations with keyboard shortcuts.
      My Computer


  9. Posts : 15,041
    Windows 10 IoT
       #9

    You may need something like Display Fusion to do that. I don't know how, or if its even possible, to do it via command line etc.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:57.
Find Us




Windows 10 Forums