send function keys to a legacy DOS program

Mel mwilson at the-wire.com
Tue Mar 29 11:09:38 EDT 2011


Alexander Gattin wrote:
> Another thing is that you may need to send key
> release after key press in order for the
> application to trigger the F5/F2/F7 event. I'm not
> sure what the scan codes for F5/F2/F7 releases
> are, but think that they may be:
>
> F5: 0xBF
> F2: 0xBC
> F7: 0xC1

True.  The key-release codes are the key-press codes (the "key numbers")
but with the high-order bit set.

	Mel.




More information about the Python-list mailing list