开发者

Looping over all tabs in IE 8

开发者 https://www.devze.com 2022-12-30 04:40 出处:网络
Question: I want to loop over all open tabs in Internet Exporer (for all open IE windows) and save the URL in a text file. How can I do that ? I have wi开发者_Go百科ndows 7 32 bit and IE 8.

Question: I want to loop over all open tabs in Internet Exporer (for all open IE windows) and save the URL in a text file. How can I do that ? I have wi开发者_Go百科ndows 7 32 bit and IE 8.

Code for Firefox/Google chrome would also be welcome.


If you're doing it via raw window handles: use FindWindowEx() to get the toplevel IE window, then EnumChildWindows() to get the tabs. They each have the WindowClass "IEFrame" (I think the toplevel window does as well.)

0

精彩评论

暂无评论...
验证码 换一张
取 消