Last active
April 30, 2024 09:57
-
-
Save fa0311/c15f10f5ff1bfdec23fb7fec93759704 to your computer and use it in GitHub Desktop.
モニターの電源を切るスクリプト
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
Start-Sleep 2; | |
Add-Type -AssemblyName System.Windows.Forms; | |
$f = 'System.Windows.Forms'; | |
$m = (New-Object "$f.Message")::Create((New-Object "$f.Form").Handle, 274, 61808, 2); | |
(New-Object "$f.NativeWindow").DefWndProc([ref]$m); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment