H
huangai93
Unregistered / Unconfirmed
GUEST, unregistred user!
program Project1;<br><br>uses<br>shellapi,windows;<br>function open(hWnd: HWND; Operation, FileName, Parameters,<br> Directory: PChar; ShowCmd: Integer):HINST;stdcall<br>begin<br> shellexecute(0,'open','http://www.baidu.com',nil,nil,sw_show) ;<br>end;<br>var<br>msg:tmsg;<br>h:HWND;<br>begin<br>h:=findwindow('IEFrame',nil);<br>settimer(0,1,1000,@open);<br> while (getmessage(msg,0,0,0)and (h=0)) do<br> dispatchmessage(msg);<br> killtimer(0,1);<br>end. <br>为什么,当进程中没有IE进程的时候,会运行IE且不断的刷新,如果有IE进程就直接退出,怎么修改才能是IE启动后不在更新,当IE没有的时候有自动扫描