Re: How send character to keyboardbuffer?



På Thu, 29 Mar 2007 16:55:26 +0200, skrev Wolfgang Kern <nowhere@xxxxxxxx>:


michelratipho wrote:

To get anything "useful", we need to write backspace-space-backspace.

You mean only 1 backspace want do it?
Still what would be the correct assembler routine?

You problem with the backspace could come from the keyboard
handler itself, some OS (IIRC: DOS&DOSKEY) remove the last recent
character in its buffer already when receiving a BACKspace.

So if the buffer is empty any BACKspace would be ignored.
You then may need to check on the last received scan-code
in the buffer to find 'last key' pressed was a BACKspace.

My own written KEYBD routines produce code 08 for BACKspace
and leave any action on it to the application.

But as it seems you like to write a SIMKEY function for winXP,
you better check on API-opportunities then.

for win32 he got for instance "User32.keybd_event"

there another as well, "SendInput", that is new, where he can send an array, but
I think the docs are misleasing on that one, and I didnt get it working
last time I tried. "User32.keybd_event" is easier to set up and I know it works.
It syntesize a key into the os, as if it came from the keyboard.


__
wolfgang




.



Relevant Pages

  • Re: [2.6 patch] UTF-8 fixes in comments
    ... two chars to the bash, which itself sends two chars to the terminal, ... pressing backspace once sends one backspace all along, ... nothing was remaining in the buffer. ... removes previous characters on the display. ...
    (Linux-Kernel)
  • Re: How send character to keyboardbuffer?
    ... character in its buffer already when receiving a BACKspace. ... Tekst uit oorspronkelijk bericht weergeven - ...
    (alt.lang.asm)
  • Re: How send character to keyboardbuffer?
    ... Still what would be the correct assembler routine? ... You problem with the backspace could come from the keyboard ... So if the buffer is empty any BACKspace would be ignored. ... You then may need to check on the last received scan-code ...
    (alt.lang.asm)
  • Re: [PYGTK] Insert Backspace into text widget?
    ... > TextView/Buffer in Pygtk? ... > I get jibberish inserted into the buffer. ... What exactly do you expect to see when you insert a backspace ... it to move the insertion point backwards one position, ...
    (comp.lang.python)