Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am not sure this is possible, but I want to somehow write to stdio or some such and make a perl script that will press enter on a timer. This is for a windows application that I have to mindlessly babysit. (and that I can't launch as a child process) This is what I am using currently to tell me when to hit enter....
while (true) { print"\n$t" $t=$t-1 sleep(1); if($t<0) { print "press enter NOW"; #TODo - hit enter automagically $t = $timerlength; #reset } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using perl to "press enter"
by Not_a_Number (Prior) on Dec 05, 2012 at 20:33 UTC | |
|
Re: using perl to "press enter"
by space_monk (Chaplain) on Dec 05, 2012 at 18:40 UTC |