怎样关闭显示器?(50分)

  • 主题发起人 主题发起人 hejiesi
  • 开始时间 开始时间
H

hejiesi

Unregistered / Unconfirmed
GUEST, unregistred user!
怎样关闭显示器?
 
turn off the monitor ?
{turn monitor off}

SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 0);



{turn monitor on}

SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, -1);
 
关闭显示器:
SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 0);
打开显示器:
SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, -1);
 
[^][^][^]
[blue]SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 0); //关闭显示器

SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, -1);//打开显示器 [/blue]
 
接受答案了.
 
后退
顶部