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);。
可是对浏览器不行。
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);。
可是对浏览器不行。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货