View Single Post
Old 01-31-2008   #1 (permalink)
Wes Williams


 
 

Programmatically Read All URL's in All Tabs in a Browser?

How can I approach capturing all the open URL's in all tabs in my open browser?

I wrote C# code to capture all of the IE processes but I cannot get into the
browser object model from there. How do I get into the object model and get
the URL in the address bar in all tabs?

Process[] myProcesses = Process.GetProcesses();
foreach (Process myProcess in myProcesses)
{
if (myProcess.ProcessName.Equals("IExplore",
StringComparison.CurrentCultureIgnoreCase))
Console.Write(myProcess.ProcessName);
}

--
Thanks,
Wes
My System SpecsSystem Spec