S stuwe Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-21 #1 怎麼捕獲系統屏保的消息(最好提供原碼)<br><br>在屏保的時候執行一段代碼,屏保不受影響
5 52free Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-21 #2 SendMessage(HWND_BROADCAST,WM_SYSCOMMAND,SC_SCREENSAVE,0);
S stuwe Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-21 #3 to:52free<br>我要的不是發送消息,我要的是截獲屏保的消息<br>就是說一旦屏保運行,程序就運行一些代碼(程序在運行狀態)
特 特尔斐 Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-21 #4 procedure ProcSyscommand(var Msg: TWMSyscommand);message WM_SYSCOMMAND;<br>//...<br>procedure ProcSyscommand(var Msg: TWMSyscommand);<br>begin<br> if Msg.CmdType=SC_SCREENSAVE then<br> begin<br> //做你想做的<br> end<br> else<br> inherited;<br>end;
procedure ProcSyscommand(var Msg: TWMSyscommand);message WM_SYSCOMMAND;<br>//...<br>procedure ProcSyscommand(var Msg: TWMSyscommand);<br>begin<br> if Msg.CmdType=SC_SCREENSAVE then<br> begin<br> //做你想做的<br> end<br> else<br> inherited;<br>end;
S stuwe Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-21 #5 to:特尔斐<br>可以捕獲,但其它事件受到影響,類似於關閉窗口,沒反應<br>