0

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#?

4

1 回答 1

0
  1. 从 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);
    
于 2013-06-07T06:42:42.160 回答