Re: Sleep until any keystroke
- From: Dr J R Stockton <jrs@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 24 May 2007 17:30:19 +0100
In microsoft.public.scripting.vbscript message <Of3UE4RnHHA.5032@TK2MSFT
NGP02.phx.gbl>, Wed, 23 May 2007 05:37:13, Jeffery Hicks
<jhicks@xxxxxxxxxx> posted:
In that case you can't use Wscript.Sleep What you might do is use
DateAdd to calculate a future time, how long you want to wait and
create an outer loop that runs until the current time matches the
target time. Within the loop, insert the Do While stdin example. Add a
line to jump to quit after the loop.
Rather than attempting to hog the CPU, could one not do repeated short
sleeps, testing in between to see whether input was available?
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6.
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
.
- Follow-Ups:
- Re: Sleep until any keystroke
- From: vdjatsuk
- Re: Sleep until any keystroke
- References:
- Sleep until any keystroke
- From: vdjatsuk
- Re: Sleep until any keystroke
- From: Jeffery Hicks
- Re: Sleep until any keystroke
- From: vdjatsuk
- Re: Sleep until any keystroke
- From: Jeffery Hicks
- Sleep until any keystroke
- Prev by Date: Re: Theme code question
- Next by Date: Re: Help viewing Change Password dialog.
- Previous by thread: Re: Sleep until any keystroke
- Next by thread: Re: Sleep until any keystroke
- Index(es):
Relevant Pages
|