var
ShellWindow: IShellWindows;
nCount: integer;
spDisp: IDispatch;
i,ii,im: integer;
vi: OleVariant;
IE1: IWebBrowser2;
IDoc1: IHTMLDocument2;
e: IHTMLElement;
hh : hresult;
Vitem,cns:ihtmlelementcollection;
temps : string;
begin
ShellWindow := CoShellWindows.Create;
nCount := ShellWindow.Count;
for i := 0 to nCount - 1 do
begin
vi := i;
spDisp := ShellWindow.Item(vi);
hh:=spDisp.QueryInterface( iWebBrowser2, IE1 );
hh:=IE1.Document.QueryInterface(IHTMLDocument2,iDoc1);
。。。。
可是對瀏覽器不行。
uj5u.com熱心網友回復:
上面代碼可取得ie瀏覽器的網頁內容,但取不到uc等其他非ie瀏覽器的網頁內容。uj5u.com熱心網友回復:
不明白,同一個網頁,只是在IE瀏覽器和非IE瀏覽器可能顯示的效果不一樣,但是網頁內容應該是一樣的啊。轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/47704.html
