リンクをFirefoxで開くunDonutのスクリプトが欲しい
wshshell = new ActiveXObject("WScript.Shell")
unDonut = new ActiveXObject("DonutP.API");
nIndex = unDonut.TabIndex;
document = unDonut.GetDocumentObject(nIndex);
window = unDonut.GetWindowObject(nIndex);
url = window.document.URL
if ( document.activeElement.href ) {
click_url = document.activeElement.href;
} else {
click_url = "";
}
if ( click_url != "" ) {
wshshell.run("\"C:\\Program Files\\Mozilla Firefox\\firefox\.exe\"" + click_url);
} else {
wshshell.run("\"C:\\Program Files\\Mozilla Firefox\\firefox\.exe\"" + url);
}
これでいいんですかねえ・・・リンクを選択した場合はそれを、何もないところで右クリックした場合は開いているページをFirefoxで開きます。
もちろんパス変えれば好きなアプリケーションで開きます。

