This console application uses native Win32 APIs to get the URLs for all open Internet Explorer windows. This is done by finding all appropriate window (whose class name is IEFrame), accessing the address bar control programatically and then invoking its text (which is the actual URL).
The mentioned APIs are User32.Dll’s EnumWindows, FindWindowEx, GetClassName and SendMessage functions which are used to find the appropriate windows and get the URLs (SendMessage is used to get the address bar’s text).
The source code is available here.
Note: This application has not been tested with Internet Explorer 7; I intend to do so in the next few days and will edit the code accordingly, if necessary.
3 Responses to “Internet Explorer URL Crawler”
Leave a Reply
Search
About |
Currently, he is administering AeroXperience and coding using Visual Studio 2008 on Windows Vista. He is looking forward to testing Windows 7 soon.
I like ur code about Get URLs from IE..
& Its really useful to me..
But I have some different requirement…
I want to get only those URLs which is really surfed in the explorer. means, I don’t want title or URL like “about:blank” .. so what should i do for that..
please help me..
Thanking you….
Praful, what information exactly would you like to get from Internet Explorer?
wat information, whats ur email so i will send you url praful.