LS;
I looked around for some info on how to apply timer and counter functionality. The goal is simple, building a alarm clock for cooking.
Can anyone get me going?
Regards;
Ed
Using timer and counter functionality
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Here is one possibility:
on mouseUp
if the hilite of me is false then
set the hilite of me to true
send "ringTheBell" to me in 5 seconds
else
set the hilite of me to false
end if
end mouseUp
on ringTheBell
if the hilite of me is true then
beep
send "ringTheBell" to me in 1 seconds
end if
end ringTheBell
Put this script into a button and set the autoHilite of that button to false.
Best,
Mark
on mouseUp
if the hilite of me is false then
set the hilite of me to true
send "ringTheBell" to me in 5 seconds
else
set the hilite of me to false
end if
end mouseUp
on ringTheBell
if the hilite of me is true then
beep
send "ringTheBell" to me in 1 seconds
end if
end ringTheBell
Put this script into a button and set the autoHilite of that button to false.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Ed,
What is "typical time-functionality"? The script I wrote you is a perfect alarm clock, although you might want to play a different sound. What else are you looking for?
Best,
Mark
What is "typical time-functionality"? The script I wrote you is a perfect alarm clock, although you might want to play a different sound. What else are you looking for?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode