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

  1.    20 Jan 2018 #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 ComputerSystem Spec

  2.    21 Jan 2018 #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 ComputerSystem Spec

  3.    21 Jan 2018 #3


    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 ComputerSystem Spec


Related Threads
I am using Windows 10 Home up-to-date. Just found this entry (Program) in my Task Manager-Startup Programs. It has no identification except 'Program' . On right click it doesn't show any properties or location just the enable or disable button. I...
need to install and run this on windows 10 32 or 64 bit OS keeps saying need to restart pc to complete install using windows 7 compatibility mode Thanks
I installed virtual XP on Win 10 Pro. When trying to open it in Hyper-V Manager it fails to connect even though it shows in the manager small box that it loaded XP and was ready for use. According to SystemInfo my AMD-Gigbyte computer supports all...
ever since i have updated to windows 10 i have had nothing but problems with memory usage, on idle recently i have seen anywhere from 5-10gb of of my memory on standby. if i try to run a game or memory intensive process it will often crash the...
I just had to create a whole new user profile so I could install a program so I could use it. In my regular profile I could not find a way to get this program to run. It would be running in the task manager but not open on my desk top. Weird. A...
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 01:58.
Find Us