Simulating keypress
Results 1 to 2 of 2

Thread: Simulating keypress

  1. #1
    Join Date
    Jul 2003
    Posts
    89

    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?

  2. #2
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806
    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".

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •