rem turn off screen
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)
**SC_MONITORPOWER**
0xF170 Sets the state of the display. This command supports devices that have power-saving features, such as a battery-powered personal computer.
设置显示的状态。此命令支持具有省电功能的设备,例如电池供电的个人计算机。
The *lParam* parameter can have the following values:
lParam 参数可以具有以下值:
* -1 (the display is powering on)
-1(显示器正在开机)
* 1 (the display is going to low power)
1(显示器将进入低功耗状态)
* 2 (the display is being shut off)
2(显示屏正在关闭)