Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnScreenDisplay Countdown...
#1
What's the best way to get OnScreenDisplay to run a countdown?

So I have double Seconds=134.030

and I want OnScreenDisplay to run through to zero using milliseconds if possible!

Thanks,
jimmy Vig
#2
Macro Macro630
Code:
Copy      Help
double Seconds=5.5

int ms0(Seconds*1000) ms(ms0)
int t0=timeGetTime ;;get ms, same as GetTickCount but more precise
rep
,str s.format("%i.%03i" ms/1000 ms%1000)
,OnScreenDisplay s 1 0 0 0 0 0 5 "cd472"
,0.01
,ms=ms0-(timeGetTime-t0)
,if(ms<=0) break
OsdHide "cd472"


Forum Jump:


Users browsing this thread: 1 Guest(s)