FirefoxでURLを検出するには、DDEを使用します
DdeClient dde = new DdeClient("Firefox", "WWW_GetWindowInfo");
dde.Connect();
string url1 = dde.Request("URL", int.MaxValue);
dde.Disconnect();
temp = url1.Replace("\"", "").Replace("\0", "");
dde = null;
このコードは完璧に動作します!しかし、接続するには遅すぎます (dde.Connect();) は 7/8 秒遅すぎます! Firefox から URL を取得する別の方法はありますか? (「SendMessage」などの API ウィンドウを使用する例)