首页 > 代码库 > 关闭显示器

关闭显示器


{turn monitor off}
SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 2); //关闭显示器
 
{turn monitor on}
 
SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, -1);


来自为知笔记(Wiz)