send function keys to a legacy DOS program

jr julien.rioux at gmail.com
Fri Mar 11 13:03:46 EST 2011


On Mar 10, 7:58 pm, Justin Ezequiel <justin.mailingli... at gmail.com>
wrote:
> Greetings,
>
> We have an old barcode program (MSDOS and source code unavailable.)
> I've figured out how to populate the fields (by hacking into one of
> the program's resource files.)
> However, we still need to hit the following function keys in sequence.
> F5, F2, F7
> Is there a way to pipe said keys into the program?
>

Use "expect" on unix or "pexpect" if you're looking for the python
implementation.



More information about the Python-list mailing list