Display to standby via SendMessage, 0x112, 0xF170, 2,, Program Manager


  1. Posts : 248
    Windows 10 Pro
       #1

    Display to standby via SendMessage, 0x112, 0xF170, 2,, Program Manager


    Apparently to can put a display in stand by with the script 'SendMessage, 0x112, 0xF170, 2,, Program Manager'. I have a system with multiple displays and I'd like to be able to set up keyboard shortcuts to put them to sleep individually. Is it possible to modify the code 'SendMessage, 0x112, 0xF170, 2,, Program Manager' so that it refers to specific displays? I don't know what either 0x112 nor 0xF170 means but maybe they can be changed to point to specific displays?
      My Computer


  2. Posts : 809
    Win10
       #2

    0x112: WM_SYSCOMMAND - List of Windows Messages
    0xF170: SC_MONITORPOWER - WM_SYSCOMMAND message (Windows)
    2: Power off

    There is no way with this API to turn off a specific monitor.

    What exactly are you trying to do?
      My Computer


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

    Thanks!

    I'd like to be able to use keyboard shortcuts to sleep and wake individual monitors. Alternatively keyboard shortcuts to toggle "extend desktop to this display" and "disable this display" in Display settings for specific monitors would also be okay.

    I've found some apps and Autohotkey scripts to do this sort of thing but they cause windows to forget the relative display positions which then take a long time to put back in position.
      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 21:41.
Find Us




Windows 10 Forums