う〜ん、ちょっと分かりませんね
もうちょっと詳しい人の回答を待った方がいいかもしれません
ただ決められた時間に動作させるならタイマー式にした方が便利かもしれません
ミリ秒単位で取得する必要性は無いですけど・・・
#uselib "gdi32"
#cfunc GetStockObject "GetStockObject" int
#func SetBkMode "SetBkMode" int, int
hBrush = GetStockObject ()
oncmd gosub *ctlcolorstatic, $138
mmload dir_win + "\\Media\\ding.wav"
time_flg = 1
x = 0
a="7秒ごとに更新"
b=""
input b,60,20
hInput = objinfo (stat, 2)
sendmsg hInput, $CF, 1
mesbox a,100,100,1
hMesbox = objinfo (stat, 2)
sendmsg hMesbox, $CF, 1
repeat
if time_flg {
dim time_flg
start_time = double ((gettime (5) * 60000) + (gettime (6) * 1000) + gettime (7)) / 1000
}
check_time = double ((gettime (5) * 60000) + (gettime (6) * 1000) + gettime (7)) / 1000
if check_time < start_time {
check_time + 3600000
}
time = check_time - start_time
if time > 6.999 {
x++
a = strf ("%03d",x) + "回目表示"
objprm 1, a
mmplay
time_flg = 1
}
objprm 0, strf ("%6.3f",time)
await 1
loop
*ctlcolorstatic
if lparam = hInput | lparam = hMesbox {
SetBkMode wparam, 1
return hBrush
}
return