キッチンタイマーを作ってください。
要件は以下のとおりです。・タイマーが鳴るまでの時間を入力可能
・残り時間を表示
・タイマーが切れたら音がなる
#sec = val(input(“input sec.”));
insert str(#sec)+”\n”;
#start = tickcount;
while (#sec) {
if ((#start + 1000) <= tickcount) {
#start = tickcount;
#sec = #sec – 1;
moveto 0,0;
beginsel;
golineend;
endsel;
insert str(#sec);
gofileend;
}
}
beep;
endmacro;
Comments are closed.