Windows 关闭显示命令


1.关闭显示器.bat:

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)

2.exe关闭显示器:
CloseMonitor
https://github.com/xlfdll/CloseMonitor/releases

TurnOffLCD.exe
https://www.redmondpie.com/turn-off-your-notebook-lcd-with-one-click/
https://www.redmondpie.com/downloadscenter/TurnOffLCDv101.zip

3.win+R cmd:
%systemroot%\system32\scrnsave.scr /s

4.C#代码实现:
https://www.cnblogs.com/crwy/p/9673565.html
https://www.pstips.net/how-to-switch-off-display-with-powershell.html

5.一个多功能工具: NirCmd.exe:
nircmd.exe monitor off  ---要带参数
https://www.nirsoft.net/utils/nircmd-x64.zip
https://www.nirsoft.net/utils/nircmd.html


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM