Created
November 5, 2011 07:03
-
-
Save orangeclover/1341217 to your computer and use it in GitHub Desktop.
秀丸でGroovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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