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关闭显示器: CloseMonitorhttps://github.com/xlfdll/CloseMonitor/releases
TurnOffLCD.exehttps://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.htmlhttps://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.ziphttps://www.nirsoft.net/utils/nircmd.html