Re: [DOS] How to code for a time delay?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Alex:



Whoops ! hit the enter too fast .
while 1 do
  sleep(1) -- sleep 1 second
if get_key() = 113 then -- "q" to quit. use key.bat to find out the code for
  the key.
    exit
  else
    puts(1,".")
  end if   
end while



Bernie
Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu