
Doe's anybody know how to fake the keyboardbuffer ?
Quote:
>Well, you can do it via ASM, but I'm not aware that you can POKE it.
>Here's how to simulate a keypress (in ASM):
>mov ah,05h
>mov ch,scancode
>mov cl,ascii character
>int 16h
>retf
>Set CH to 0 if you want. Set CL to the ascii value of a character.
Hm... Egbert, perhaps this is what you are looking for?
You couldn't use weird combinations with the source I posted some time ago,
but this one seems to work just fine I believe...
The following snippet works in PB:
! mov ah,&h05
! mov ch,scancode%
! mov cl,asciivalue%
! int &h16
Marc van den Dikkenberg
-----------------------------o---------------------
http://145.89.78.151/~excel | Programming Archives
http://www.xs4all.nl/~excel | antU, Humour, Sci-Fi