View Single Post
Old 10-26-2016, 06:59 AM
passel's Avatar
passel passel is offline
Sinecure Expert

Super Moderator
* Guru *
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 8,031

<edit> Caveat: Your file "vbs" is suggesting vbscript, and I don't know vbscript, so the below response is probably completely wrong. I wrote it thinking VB6, but then realized, looking back, that is probably wrong.</edit>

I guess I would use a NextTime value and set it to the next time you want the "clock" to speak. Then depending on what resolution you want (how close to the exact minute or second you want), use a timer to periodically check to see if it is time to call your code.
For instance, you could set the Timer Interval to 10000 to "wake up" every 10 seconds, and check the time. If you're equal to, or slightly (within 10 seconds) of your speak time, call your code, and update nextTime to the next half hour.
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.

Last edited by passel; 10-26-2016 at 07:04 AM.
Reply With Quote