Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done Feature request: Pause more than 2 hours and 46 minutes, but less than infinity

Jul
532
10
I want my unknown commands to pause execution for about 12 hours — long enough for me to go out, sleep, wake up, and take notice.

But short enough to continue the process if I am out of my house for a few days, for example on vacation for a week and want my AI processing to continue despite minor glitches.

Alas, the new timer features for pause and inkey seem to top out at /w9999 and error out of you use more than 9999, which works out to 2.7775 hours. So I can pause 1–3 hours, but not the 12 hours I want.
 
Code:
R:\>inkey /t /w43200 %%varname 
 [43193]

Countdown timer, which can be stopped with any key.

Code:
R:\>inkey /t /w43200 /k"[Ctrl-F9]" `` %%varname 
 [43193]

Countdown timer, which can be stopped with Ctrl-C or Ctrl-F9.
Joe
 
Joe, are you sure that inkey can have a timer > 9999? Because, Claire mentioned that greater values results in a error.
 
I ran it on my system,
and it displayed the timer count down,
with no error.

I did this with both v33 and v34.

What does it do on your system?

Joe
 
AFAICT, INKEY and INPUT are OK. PAUSE gives an eror message if you use more than 9999.
 
Thanks for info, Joe and Vince.

I haven't tested it on my system yet. I was just unsure because of Claire's post.
 
JFI:

Tested now here too with v34 and values > 9999:

  • INKEY is indeed ok
  • INPUT ok too
  • DELAY of course is also good
  • PAUSE fails

Thanks again.
 
PS: Another variant could be:

Code:
timeout /t 43200
 
Back
Top