home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 November
/
VPR9711A.ISO
/
VPR_DATA
/
Special
/
Koda202
/
koda202.lzh
/
htmtop.mac
< prev
next >
Wrap
Text File
|
1997-03-07
|
3KB
|
53 lines
//こだマクロ(HTML作成)
//htmtop.mac
//このマクロは「秀丸エディタ」用のマクロです。
//97030722
//
top:
if ( getinistr ( hidemarudir + "\\htmini.txt" , "Start" , "ini" ) =="まだ" ){
message "初期設定の確認をします。\nこれは今回のみで次回からは確認しません。\nまたこれから行う設定はあとから変更することができます。";
execmacro hidemarudir + "\\htmstart.mac";
writeinistr hidemarudir + "\\htmini.txt","Start",0,0;
}
title getinistr ( hidemarudir + "\\htmini.txt" , "Topmenu" , "title" );
#menu = getininum ( hidemarudir + "\\htmini.txt" , "Topmenu" , "num" );
#i = 0;
while ( #menu + 1 > #i ) {
$top[#i] = getinistr ( hidemarudir + "\\htmini.txt" , "Topmenu" , 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;
if ( result == 0 || strstr ( $menu[result-1] , "終" ) != -1 ) endmacro;
else if ( strstr ( $menu[result-1] , "ブラウザ" ) == -1 ) execmacro getinistr ( hidemarudir + "\\htmini.txt" , "Topmenu" , "macropath" ) + $command[result-1];
if ( strstr ( $menu[result-1] , "ブラウザ" ) != -1 || getinistr ( hidemarudir + "\\htmini.txt" , "Browser" , "check" ) != "off" ){
if ( getinistr ( hidemarudir + "\\htmini.txt" , "Browser" , "check" ) == "ask" && strstr ( $menu[result-1] , "ブラウザ" ) == -1 ) {
question getinistr ( hidemarudir + "\\htmini.txt" , "Browser" , "checkmsg" );
if ( result != getininum ( hidemarudir + "\\htmini.txt" , "Browser" , "checkdef" ) ) goto las;
}
save;
$app = getinistr ( hidemarudir + "\\htmini.txt" , "Browser" , "app" );
$topic = getinistr ( hidemarudir + "\\htmini.txt" , "Browser" , "topic" );
ddeinitiate $app,$topic;
if ( result == 0 ) {
run getinistr ( hidemarudir + "\\htmini.txt" , "Browser" , "path" ) + " %f";
}
//一度ダミー信号を送り、実行後は常にアクティブにする。
//これがないとファイル名が同じときは内容更新後のブラウザは秀丸の影に行く。
if ( getininum ( hidemarudir + "\\htmini.txt" , "Browser" , "active" ) == 1 ) ddeexecute "file:\\";
// ddeexecute "file:" + filename;
ddeexecute "file:///" + filename;
endmacro;
}
las:
if ( getinistr ( hidemarudir + "\\htmini.txt" , "Line" , "ret" ) == "on" ) insertreturn;
writeinistr hidemarudir + "\\htmini.txt" , "Line" , "ret" , 0;
if ( getinistr ( hidemarudir + "\\htmini.txt" , "Topmenu" , "conti" ) == "yes" && strstr ( $menu[result-1] , "ブラウザ" ) == -1 && getinistr ( hidemarudir + "\\htmini.txt" , "Browser" , "check" ) == "off" ) goto top;
else endmacro;