I am creating a windows form app to keep track of the urls opened in my browser but a browser may contain many tabs.
How can i get the urls in all tabs opened at the same time using c#?
I am creating a windows form app to keep track of the urls opened in my browser but a browser may contain many tabs.
How can i get the urls in all tabs opened at the same time using c#?
Get the URl From Firefox and Opera :
DdeClient dde = new DdeClient(browser, "WWW_GetWindowInfo");
dde.Connect();
string url = dde.Request("URL", int.MaxValue);
string[] text = url.Split(new string[] { "\",\"" }, StringSplitOptions.RemoveEmptyEntries);
dde.Disconnect();
return text[0].Substring(1);