Skip to content

Instantly share code, notes, and snippets.

@orangeclover
Created November 5, 2011 07:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orangeclover/1341217 to your computer and use it in GitHub Desktop.
Save orangeclover/1341217 to your computer and use it in GitHub Desktop.
秀丸でGroovy
// GroovyRun:Groovy実行マクロ
// GroovyとGroovyServが必要です。
//
// 設定
//
// 環境変数PATHを設定してなければ、groovyclientを絶対パスの設定
// 環境変数PATHを設定してあれば、変更不要
// 例
$groovyclient = "groovyclient.exe";
// 2)groovyclient実行時のオプションの指定
// 例
//$groovyclient_option = "-d";
$groovyclient_option = "";
// 3)groovy実行時のオプションの指定
//例
//$groovy_option = "-Cenv-all";
$groovy_option = "";
// アウトプット枠のクリア
loaddll "HmOutputPane.dll";
#h=dllfunc("GetWindowHandle",hidemaruhandle(0));
#ret=sendmessage(#h,0x111/*WM_COMMAND*/,1009,0);
// 編集中自動保存
if (updated) {
save;
}
runex $groovyclient + " " + $groovy_option + " "+ $groovyclient_option + "\" %f\""
, 0 //sync 0:async 1:sync
, 0, "" //stdin 0:none 1:auto 2:file 3:(reserve) 4:all 5:select
, 7, "" //stdout 0:none 1:auto 2:file 3:add file 4:new 5:insert 6:replace 7:output frame
, 7, "" //stderr 0:none 1:=out 2:file 3:add file 4:new 5:insert 6:replace 7:output frame
, 0, "" //folder 0:none 1:current 2:specify 3:(reserve) 4:exe's folder
, 0 //show 0:auto 1:show 2:hide
, 0 //nodraw 0:draw 1:no draw
, 0 //ansi 0:ansi 2:unicode
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment