This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int PostMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::PostMessage(-1,0x0112,0xF170,2) |
@Shazib
Can confirm that it works for me with Windows 10 Pro 22H2.
First of all thanks to EugeneLoy and unknown for me the author of the command :-)
Today 2.6.2023 - it works for me. Conditions - Win10 22H2. Two monitors. Both displays are turned off one time.
Is this still working for you guys? for me the screen turns off then immediatley turns back on - no mouse or keyboard movements (by me)...
Cheers.
FYI I've discovered that this doesn't play nice with my monitor that supports DDC/CI control. https://github.com/xanderfrangos/twinkle-tray/ works though.
Thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this still working for you guys? for me the screen turns off then immediatley turns back on - no mouse or keyboard movements (by me)...