Created
March 9, 2022 13:59
-
-
Save KygekDev/542399e0b2d9c5cbc2a3756edfd8a73d to your computer and use it in GitHub Desktop.
Script to turn off screen in Windows 10/11
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 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