Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #2175 > unrolled thread
| Started by | Alexander Gattin <xrgtn@yandex.ru> |
|---|---|
| First post | 2011-03-29 16:59 +0300 |
| Last post | 2011-03-29 15:09 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: send function keys to a legacy DOS program Alexander Gattin <xrgtn@yandex.ru> - 2011-03-29 16:59 +0300
Re: send function keys to a legacy DOS program Mel <mwilson@the-wire.com> - 2011-03-29 15:09 +0000
| From | Alexander Gattin <xrgtn@yandex.ru> |
|---|---|
| Date | 2011-03-29 16:59 +0300 |
| Subject | Re: send function keys to a legacy DOS program |
| Message-ID | <mailman.1366.1301407273.1189.python-list@python.org> |
Hello, On Sun, Mar 20, 2011 at 06:59:46PM -0700, Justin Ezequiel wrote: > On Mar 20, 7:30 am, Alexander Gattin > <xr...@yandex.ru> wrote: > > You need to place 2 bytes into the circular buffer > > to simulate key press. Lower byte is ASCII code, > > higher byte is scan code (they are the same for > > functional keys, whe using default keycode set#1): > > > > F5: 0x3F 0x3F > > F2: 0x3C 0x3C > > F7: 0x41 0x41 I'm not sure regarding the ASCII part. I think it might need to be set to 0x00 for all functional keys instead of 0x3F/0x3C/0x41, but probably no application actually cares. 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 -- With best regards, xrgtn
[toc] | [next] | [standalone]
| From | Mel <mwilson@the-wire.com> |
|---|---|
| Date | 2011-03-29 15:09 +0000 |
| Message-ID | <imssni$fe7$1@dont-email.me> |
| In reply to | #2175 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web