Windows Vista Beta | WinVistaBeta.com - Message | Programmatically Read All URL's in All Tabs in a Browser?

July 03, 2008  
Subject: Programmatically Read All URL's in All Tabs in a Browser?
Group: microsoft.public.windows.developer.winfx.general
Date: 1/31/2008 12:32:00 PM
From: =?Utf-8?B?V2VzIFdpbGxpYW1z?= [Email Address Protection]

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

Back