On the same topic, can anyone explain me while this isn't working for me. I'm writing a script that runs an eternal loop. Once each loop I want a 5 second period in which the user can cancel by pressing any key. (seems very similar to the original question.) This is what i wrote:
. For $counter = 1 to 100
. Sleep 0.05
. If KbHit()
. Quit
. Endif
. Next
The script does pause for 5 seconds, but doesn't accept any input from me; what am I doing wrong?
(I'm using version 4.20)
_________________________
- Impotent man looking for frigid woman to sit around and do nothing.