Skip to content

Instantly share code, notes, and snippets.

@masaru-b-cl
Created June 7, 2012 04:40
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save masaru-b-cl/2886609 to your computer and use it in GitHub Desktop.
CreateNewGistを呼び出す秀丸マクロ
// ----------------------------------
// CreateNewGist.exe実行マクロ
// 2012/06/07 TAKANO Sho
// ----------------------------------
// ファイルが更新されているかチェック
if ( filename2 == "" || updated ) {
// ファイルのセーブ
save;
// 保存処理結果判断
if ( result == false ) {
endmacro;
}
}
// CreateNewGist.exeのパス設定
$createNewGistPath = "C:\\Standalone Programs\\CreateNewGist\\CreateNewGist.exe";
// GitHubアカウント情報設定
$user = "user";
$password = "password";
// 実行文字列生成
$runstr = $createNewGistPath +" \"" + filename2 + "\" " + $user + " " + $password;
// 実行
run $runstr;
// マクロ終了
endmacro;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment