▶PC & Windows
윈도우에서 모니터 클릭한번으로 끄는 방법
Rehab.
2021. 1. 30. 11:54
윈도우에서 모니터를 한번에 꺼지게하는 방법입니다.
매우 간단합니다.
%windir%\system32\cmd.exe /c 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)
이 코드를 명령프롬프트(cmd)에 입력하면 바로 꺼지게 됩니다.
키보드나, 마우스를 입력하면 다시 화면이 돌아오게됩니다.
모니터끄기.bat 파일은 다운받아서 테스트해보세요.
해당 파일 더블클릭하면 모니터가 꺼지게 됩니다.