ShellWindowsClass shellWindows = new ShellWindowsClass();
foreach (InternetExplorer ie in shellWindows)
{
string filename = System.IO.Path.GetFileNameWithoutExtension(ie.FullName).ToLower();
if (filename.Equals("iexplore") && ie.Visible == true)
{
url = ie.LocationURL;
}
}
这个不行啊,这是所有的tab页签的网址!
我要的是正在浏览的!