| |
範囲指定で、ある種類の数字を別の種類の数字に置換するマクロを作りました。ウ
ェブから、いくつかの部品を組み込んでいます。しかし、思ったように動きません。
別の種類の数字が新しいファイルに作られますが、元のファイルの数字は範囲指定さ
れるだけで、そのままです。どういうふうに修正したらいいのか、教えていただけな
いでしょうか?
このマクロで行いたいのは、下記の置換です。秀丸Ver.8.04を使っています。
�@ −> 1)
�A −> 2)
�B −> 3)
=======================================
// 検索バッファと置換バッファを保存
$s = searchbuffer;
#f = searchoption;
$r = replacebuffer;
copy2;
newfile;
paste;
replaceallfast "�@" , " 1)" ;
replaceallfast "�A" , " 2)" ;
replaceallfast "�B" , " 3)" ;
replaceallfast "�C" , " 4)" ;
replaceallfast "�D" , " 5)" ;
replaceallfast "�E" , " 6)" ;
replaceallfast "�F" , " 7)" ;
replaceallfast "�G" , " 8)" ;
replaceallfast "�H" , " 9)" ;
replaceallfast "�I" , " 10)" ;
replaceallfast "�J" , " 11)" ;
replaceallfast "�K" , " 12)" ;
replaceallfast "�L" , " 13)" ;
// escapeinselect; // 選択範囲の置換を解除
setsearch $s,#f; // 検索バッファと置換バッファを戻す
setreplace $r;
selectall;
copy2;
endmacro;
|
|