-
Simulating keypress
Hi, I have a program that starts by saying "press any key to continue". I want to make a way to skip this. I tried some things already. The first thing I did was make a text file with and "a" in it and then tried:
myProgram < textFile
Didn't work.
Then, I tried
echo a | myProgram
Didn't work either. It still says press any key to continue. Any ideas?
-
Unfortunately, some program(mer)s flush the keyboard buffer immediately before prompting you to "press <some key> to continue". The reason they do this is so the process cannot be automated, forcing you to physically "press <some key> to continue".