home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 November
/
VPR9711A.ISO
/
VPR_DATA
/
Special
/
Koda202
/
koda202.lzh
/
kodama
/
kodaline.mac
< prev
Wrap
Text File
|
1997-02-18
|
1KB
|
28 lines
//こだマクロ
//kodaline.mac
//このマクロは任意の範囲の文字列を取り込む際、対話式で
//範囲指定できるマクロです。(前もって指定してあってもOK)
//各マクロでクリップボードから直接読み込まないのは
//同じ命令の重複分が多くなるためです。
//「秀丸エディタ」用のマクロです。
//
//97021701
line:
if ( selecting == no ) {inputpos getinistr ( hidemarudir + "\\htmini.txt" , "Line" ,"message" + getinistr ( hidemarudir + "\\htmini.txt" , "Line" , "message" ) );}
if ( selecting == no ) {beginsel;inputpos getinistr ( hidemarudir + "\\htmini.txt" , "Line" ,"message" + str ( val ( getinistr ( hidemarudir + "\\htmini.txt" , "Line" , "message" ) ) + 10 ) );}
cut;
beginclipboardread;
#i = 0;
$newline[#i] = getclipboard;
while ( $newline[#i] != "" ) {
writeinistr hidemarudir + "\\htmini.txt" , "Line" , str ( #i ) , $newline[#i];
#i = #i + 1;
$newline[#i] = getclipboard;
}
//最終行を取り込む
writeinistr hidemarudir + "\\htmini.txt" , "Line" , "line" , str ( #i );
// message rightstr ( $newline[#i-1] , 1 ) + "da";
if ( rightstr ( $newline[#i-1] , 1 ) == "\n" ) writeinistr hidemarudir + "\\htmini.txt" , "Line" , "ret" , "on";
endmacro;