名人!プログラム書いてください!
at TECH
[
2ch
|
▼Menu
]
■コピペモード
□
スレを通常表示
□
オプションモード
□このスレッドのURL
■項目テキスト
1:デフォルトの名無しさん 09/03/04 15:44:54 ・FireGestures 「リンク先、または現在のページをJane Styleで開く」 で、「My Document・・・にJane2ch.exeがなければ、H:・・・のJane2ch.exeで実行」を指定 ・Jane Style 「プラウザのパス」 「コマンド」で、「リンクをFirefoxで開く」を 「My Document・・・にFirefox.exeがなければ、H:・・・のFirefoxPortable.exeで実行」 親切な方お願いします 2:現行構文 09/03/04 15:46:44 ・FireGestures const IE_PATH = "パス\\Jane Style\\Jane2ch.exe"; var file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile); file.initWithPath(IE_PATH); if (!file.exists()) { alert("File does not exist: " + IE_PATH); return; } var process = Cc["@mozilla.org/process/util;1"].createInstance(Ci.nsIProcess); try { var args = [window.content.location.href]; var linkURL = FireGestures.getLinkURL(); if (linkURL) args = [linkURL]; process.init(file); process.run(false, args, args.length); } catch (ex) { alert("Failed to execute: " + IE_PATH); }
次ページ
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
レスジャンプ
mixiチェック!
Twitterに投稿
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch
5368日前に更新/1481 Bytes
担当:undef