TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: VIC BATES
from: JASEN BETTS
date: 1998-04-10 06:32:00
subject: countdown timer probs

VB> is not running! The timer just keeps on ticking away!   It runs ok when
VB> the dos window is not minimized.  So why should minimizing it stop the
VB> timer from detecting the correct time and how can I fix it?
Is it running in the backgropund?
Maybe it's not looking when you want it to. are you  cheking for the start
time ariving (with ==) or for it passing (with gt)
This may help you.
:: Waittill.btm - not perfect, don't waittill some time tomorrow.
:: useage waittill TIME, eg waittill 14:30
:: any key will also exit the wait.
:: stupid screen-saver included at no extra cost.
:: designed with ver 5.52 should work with 4.xx up.
setlocal
set x=0
set y=0
set x1=1
set y1=1
set xy2=1 1
set z=
cls
:top
screen %x %y  %_time waiting for %1
screen %xy2 `                           `
set xy2=%x %y
screen %xy2
if %@time[%_time] gt  %@time[%1] quit
beep 0 3
set x=%@eval[%x +%x1]
if %x gt 23 set x1=-1
if %x lt 1 set x1=1
set y=%@eval[%y +%y1]
if %y gt 53 set y1=-1
if %y lt 1 set y1=1
inkey /w0 %%z
set z >& nul
if %_? ne 0 goto top
                        
--- EzyQwk V1.20 01fa018d
---------------
* Origin: CSS Brisbane, Qld, Australia. (61-7-3367-3890) (3:640/350)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.