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#?
从 Firefox 和 Opera 获取 URL:
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);