Macro/投稿/2 の変更点

http://sakura.qp.land.to/?Macro%2F%C5%EA%B9%C6%2F2


Top > Macro > 投稿 > 2

* HSPの選択部分コンパイル+実行 [#q20d2101]
-ページ: [[Macro/投稿]]
-作者: [[xi]]
-カテゴリー: ppa
-投稿日: 2002-08-21 (水) 06:06:01

** メッセージ [#b4927a8d]
-[http://www.cmo.jp/users/size/ XiCompiler]というツールが必要
-[http://web.archive.org/web/20050311230447/http://www.cmo.jp/users/size/soft/xicmp.html XiCompiler]というツールが必要
-パスの記述も適宜変更が必要。
#code(pascal){{
//ppaマクロ
var
        Path, Dir :String;
        i         :Integer;
begin
        // フルパス→ディレクトリ取得
        Path := S_GetFilename();
        Dir  := '';

        i := Pos('\',Path);
        while (i>0) do begin
                Dir := Dir + Copy(Path,1,i);
                Path := Delete(Path,1,i);
                i := Pos('\',Path);
        end;
        Dir := Delete(Dir,Length(Dir),1);

        // 選択範囲を実行
        S_Copy();
        //xicmp.exeのパスを指定のこと↓
        S_ExecCommand('E:\HSP\xicmp.exe '+Dir+' /clp',0);
end;
}}

----

#comment

    ホーム 一覧 単語検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS