【发布时间】:2015-08-23 06:00:11
【问题描述】:
我在这里要做的是循环直到按下“x”。我知道CHOICE 带有/T 选项。
但是CHOICE 对我想要播放的动画的超时时间过长。这是一个例子:
@echo off
cls
set frame=2
:loop
cls
type [%frame%].txt
[Here is where it would test for the keystroke.If keystroke "x" is detected,goto MENU. If not pressed within a quick second,continue.]
set /a frame=%frame%+1
goto loop
注意:帧用于动画,因此请记住超时必须相当快。
【问题讨论】:
标签: loops batch-file timeout