[BACK]Return to asirgui.mac CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / windows / post-msg-asirgui

Diff for /OpenXM_contrib2/windows/post-msg-asirgui/asirgui.mac between version 1.2 and 1.5

version 1.2, 2013/11/13 15:43:31 version 1.5, 2013/11/19 13:03:59
Line 1 
Line 1 
 // $OpenXM: OpenXM_contrib2/windows/post-msg-asirgui/asirgui.mac,v 1.1 2013/08/27 05:51:50 takayama Exp $  // $OpenXM: OpenXM_contrib2/windows/post-msg-asirgui/asirgui.mac,v 1.4 2013/11/14 17:28:29 ohara Exp $
 // Keep shift-jis code!  // Keep shift-jis code!
 call Main;  call Main;
 endmacro;  endmacro;
 Main:  Main:
 $asirpath=getenv("HOMEPATH")+"\\Desktop\\asir\\bin\\";  $asirpath=getenv("HOMEPATH")+"\\Desktop\\asir\\bin\\";
   $asir_rootdir=getenv("ASIR_ROOTDIR");
   if($asir_rootdir!="" && existfile($asir_rootdir+"\\bin\\asirgui.exe")) {
       $asirpath=$asir_rootdir+"\\bin\\";
   }
 menu "asirgui起動","編集中のファイルの実行","選択範囲の実行","行の実行","選択範囲の実行(paste)","行の実行(paste)";  menu "asirgui起動","編集中のファイルの実行","選択範囲の実行","行の実行","選択範囲の実行(paste)","行の実行(paste)";
 if (result==0) endmacro;  if (result==0) endmacro;
 else if (result == 1) {  else if (result == 1) {
   run $asirpath+"asirgui";    run $asirpath+"asirgui";
 } else if (result == 2) {  } else if (result == 2) {
   run "cmd /c "+$asirpath+"cmdasir %f";    run "cmd /c \""+$asirpath+"cmdasir\" %f";
 } else if (result == 3) {  } else if (result == 3) {
   call ExecuteSelectedArea;    call ExecuteSelectedArea;
 } else if (result == 4) {  } else if (result == 4) {
Line 27  ExecuteSelectedArea: 
Line 31  ExecuteSelectedArea: 
     $tmp_fname = getenv("TEMP")+"\\cmdasir-tmp-hidemaru.rr";      $tmp_fname = getenv("TEMP")+"\\cmdasir-tmp-hidemaru.rr";
     run "cmd /c del "+$tmp_fname ;      run "cmd /c del "+$tmp_fname ;
     call MakeFile $tmp_fname,$s;      call MakeFile $tmp_fname,$s;
     run "cmd /c "+$asirpath+"cmdasir "+$tmp_fname;      run "cmd /c \""+$asirpath+"cmdasir\" "+$tmp_fname;
   } else {    } else {
   message "範囲選択されていません";    message "範囲選択されていません";
   }    }
Line 71  ExecuteSelectedAreaByPaste: 
Line 75  ExecuteSelectedAreaByPaste: 
     $tmp_fname = getenv("TEMP")+"\\cmdasir-tmp-hidemaru.rr";      $tmp_fname = getenv("TEMP")+"\\cmdasir-tmp-hidemaru.rr";
     run "cmd /c del "+$tmp_fname ;      run "cmd /c del "+$tmp_fname ;
     call MakeFile $tmp_fname,$s;      call MakeFile $tmp_fname,$s;
     run "cmd /c "+$asirpath+"cmdasir --paste-contents "+$tmp_fname;      run "cmd /c \""+$asirpath+"cmdasir\" --paste-contents "+$tmp_fname;
   } else {    } else {
   message "範囲選択されていません";    message "範囲選択されていません";
   }    }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.5

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>