send function keys to a legacy DOS program

John Nagle nagle at animats.com
Sun Mar 20 02:04:43 EDT 2011


On 3/10/2011 4:58 PM, Justin Ezequiel 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?
>
> I know it's not really a python problem but I got nowhere else to go.
> I've tried other barcode solutions but none give the same output.

    Look into DOSbox.

	http://www.dosbox.com

It's an open-source software emulator for an x86 machine running DOS.
So you can go into the emulator and connect to the "keyboard" or
"screen" from another program.

					John Nagle




More information about the Python-list mailing list