Created
June 5, 2020 22:08
-
-
Save quangv/3e36d9ff7736d5305dad61cc5f1d5cb0 to your computer and use it in GitHub Desktop.
Turn off screens on Windows 10
This file contains hidden or 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 -command "Start-Sleep -s 2"; | |
powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment