man_luck Posted December 2, 2004 Posted December 2, 2004 I am developing an application in which I need to list all the URL's in the browsers which are currently open.Also I need to count the number of web browsers which are currently open.How do I do that.Do I have to use System.Net namespace or System.Web namespace? Quote
coldfusion244 Posted December 2, 2004 Posted December 2, 2004 I am developing an application in which I need to list all the URL's in the browsers which are currently open.Also I need to count the number of web browsers which are currently open.How do I do that.Do I have to use System.Net namespace or System.Web namespace? Which browser are you trying to get the URL's from? Also, for instance using IE, do you need the history of urls for that instance of IE or just the current one in the open IE windows? I am new to .NET so I am not sure about the namespaces to do that. I rely on API. What I would do, is make a enumerator and go through all the current open windows. Find all the windows with classname cls_Name where cls_Name could be the classname of IE,Netscape,Opera,Firefox, etc. Then find the combobox which holds the url and finally a sendmessage to tranfer the data. I am sure there is an easier more reliable and proficient way, but again I am not used to .NET Quote -Sean
HJB417 Posted December 2, 2004 Posted December 2, 2004 Microsoft Active Accessibility aka IAccessible. Quote
coldfusion244 Posted December 2, 2004 Posted December 2, 2004 Microsoft Active Accessibility aka IAccessible. But will that allow him to get Firefox's and opera's urls? Quote -Sean
HJB417 Posted December 3, 2004 Posted December 3, 2004 mozilla supports iaccessible so firefox will probably support it to. I don't know about opera. worst case scenario, is using win32 calls. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.