Hi all,
I need to create a script that will call a handler when one second becomes
the next. Not a timeout object, they drift in relation to the system clock.
The closest thing that I can make work is this on idle script.
global gLastSecond
on idle
if gLastSecond<> getSeconds() then
-- call nextSecond handler here -- the following lines are for testing
put GetMonth() & "/" & GetDay() & "/" & GetYear() && "-" && getHours() & ""
& getMinutes() & "" & getSeconds() & "" & the timer
startTimer
gLastSecond= getSeconds()
end if
end
The ticks don't always equal 60 this way. Here's some message window
results.
-- "6/26/2001 - 17:57:42:61"
-- "6/26/2001 - 17:57:43:59"
-- "6/26/2001 - 17:57:44:61"
-- "6/26/2001 - 17:57:45:58"
-- "6/26/2001 - 17:57:46:60"
-- "6/26/2001 - 17:57:47:58"
-- "6/26/2001 - 17:57:48:60"
-- "6/26/2001 - 17:57:49:58"
-- "6/26/2001 - 17:57:50:60"
-- "6/26/2001 - 17:57:51:58"
-- "6/26/2001 - 17:57:52:60"
And this movie isn't doing anything else. I know there has to be a better
way to do this. Can anybody point me in the right direction here?
Thanks,
Dennis Flood
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]