countdown timer script
Posted: Wed May 04, 2011 12:28 am
Hi!
I am learning all about LiveCode after many years off the scripting horse. I took some Hypercard programming classes about 20 years ago and loved it, and I'm really excited to have found LiveCode!
I want to make a task-timing application and am not sure where to begin. I've looked at several tutorials, read some of the user guide, searched the forums, and I'm still not sure what to do.
My question for you is: How can I make a field in which I enter a number (the goal time) and then press a start button, which then counts the number down to zero allowing for pauses to switch to other tasks? I've written a script for a button that starts the countdown, but I can't seem to pause it in an orderly fashion which keeps track of the new, smaller number!
In case it's relevant, I'm not concerned about the date and time in this situation, I just want to keep track of whether or not I'm completing tasks in the desired number of minutes and seconds.
thanks for any advice you can give!
I am learning all about LiveCode after many years off the scripting horse. I took some Hypercard programming classes about 20 years ago and loved it, and I'm really excited to have found LiveCode!
I want to make a task-timing application and am not sure where to begin. I've looked at several tutorials, read some of the user guide, searched the forums, and I'm still not sure what to do.
My question for you is: How can I make a field in which I enter a number (the goal time) and then press a start button, which then counts the number down to zero allowing for pauses to switch to other tasks? I've written a script for a button that starts the countdown, but I can't seem to pause it in an orderly fashion which keeps track of the new, smaller number!
In case it's relevant, I'm not concerned about the date and time in this situation, I just want to keep track of whether or not I'm completing tasks in the desired number of minutes and seconds.
thanks for any advice you can give!