home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 November
/
VPR9711A.ISO
/
VPR_DATA
/
Special
/
Koda202
/
koda202.lzh
/
kodama
/
htmcol.mac
< prev
next >
Wrap
Text File
|
1997-01-30
|
2KB
|
42 lines
//こだマクロ(HTML作成)
//htmcol.mac
//このマクロは「秀丸エディタ」用のマクロです。
//97013014
color:
$messe = getinistr ( hidemarudir + "\\htmini.txt" , "Color" , "message" );
$qcol1 = getinistr ( hidemarudir + "\\htmini.txt" , "Color" , "message" + $messe );
if ( $messe == "6" ) goto color2;
question $qcol1 + ":無指定でよろしいですか?";
if ( result == 1 ) {
$color = "";
endmacro;
}
color2:
title $qcol1 + " - こだマクロ";
#menu = getininum ( hidemarudir + "\\htmini.txt" , "Color" , "colornum" );
#i = 0;
while ( #menu + 1 > #i ) {
$top[#i] = getinistr ( hidemarudir + "\\htmini.txt" , "Color" , "color" + str ( #i ) );
$menu[#i] = leftstr ( $top[#i] , strstr ( $top[#i] , ":" ) );
$command[#i] = rightstr ( $top[#i] , strlen ( $top[#i] ) - strstr ( $top[#i] , ":" ) - 1 );
#i = #i + 1;
}
menuarray $menu, #menu + 1;
#re = result;
if ( result == 0 ) endmacro;
if ( #re > 1 ) $color = $command[#re-1];
else {
$fcak11 = "16進数6ケタで表わしてください。";
$fcak12 = " XXXXXX ";
$fcak13 = " 赤緑青 ";
$fcak1 = $fcak11 + "\n" + $fcak12 + "\n" + $fcak13;
$fcak2 = "000000";
$color = input ( $fcak1 , $fcak2 );
writeinistr hidemarudir + "\\htmini.txt" , "Zenkaku" , "line" , $color;
execmacro getinistr ( hidemarudir + "\\htmini.txt" , "Topmenu" , "macropath" ) + "htmzen.mac";
$color = "#" + getinistr ( hidemarudir + "\\htmini.txt" , "Zenkaku" , "line" );
}
writeinistr hidemarudir + "\\htmini.txt" , "Color" , "get" , $color;
endmacro;