Countdown Timer - Forum

Forum Navigation
You need to log in to create posts and topics.

Countdown Timer

Anyone know of a plug in with a countdown time feature?

I just want to set a timer, say 1 hour and a variable gives me the timer count down in hours:minutes:seconds.

Or perhaps someone has already tackled this using some clever NB code?

Thanks.

@pauljonestindall

You don't need a plugin for a count down function.

Do you want to do something like ...

SetVar "[myTimerDuration]" "3600" ... number of seconds
SetVar "[myTimerInterval]" "2" ... number of seconds between refreshes of display
GoSub "doTheCountDown"

... where the subroutine will populate [myTimerCountDisplay] with 01:00:00 ... and count down every 2 seconds (00:59:58, 00:59:56 ...... 00:00:00).

In order to display the count down in a Text Object, just place [myTimerCountdownDisplay] in the text area of the Text Object.

 

Vadim has reacted to this post.
Vadim

@gaev

Yes, that's exactly what I was looking for. I went ahead and wrote some code to subtract seconds, If's...EndIf's to do the minutes and hour, and a Timer object to trigger it every second.

Buenas, yo lo hago así (adjunto pub), no sé si habrá una forma más sencilla. Pero me funciona, lo utilizo en un programa de hacer test para mostrar el tiempo que les resta.

Un saludo.

Hi, I do it like this (pub attached), I do not know if there will be an easier way. But it works for me, I use it in a test program to show the remaining time.

A greeting.

Uploaded files:
  • You need to login to have access to uploads.