Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Cascading multiple timers 1998-08-01 -- Owen Brunker >In this case, it could not work because the timer event may only be
executed
>every minute or so.
A technique that may be useful to you is one that I use for cascading
multiple timers from the window timer.
Window WINDOW,TIMER(10)
.
.
END
CODE
.
.
OF EVENT:Timer
TimeNow1 = CLOCK()
IF TimeNow1 < TimeLastEvent1 THEN TimeNow1 += 24 Hours.
IF TimeNow1 > TimeLastEvent1 + TimerInterval1
DO DoSomething1
END
TimeNow2 = CLOCK()
IF TimeNow2 < TimeLastEvent2 THEN TimeNow2 += 24 Hours.
IF TimeNow2 > TimeLastEvent2 + TimerInterval2
DO DoSomething2
END
IF KEYBOARD()
DO KeyboardStuff
END
This will only work on a window where there are no controls requiring
keyboard entry.
Today is November 21, 2024, 7:10 am This article has been viewed 35290 times.
|
|