Doe's anybody know how to fake the keyboardbuffer ? 
Author Message
 Doe's anybody know how to fake the keyboardbuffer ?

Quote:

> Hi all you folks out there.

> I just wonder if someone can tell me how to fake the keyboardbuffer!

> I whould like know how to poke to the memoryaddress of the
> keyboardbuffer so that any other program in Win95 thinks that
> a key just have been pressed.

> I'm trying to program a timer funktion that can run in the background
> of windows and then foul other programs running.

> Please help me somebody.

> Henrik

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.

-- X-Bios



Sun, 11 Jul 1999 03:00:00 GMT  
 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

HMM.... Isn't that what I just POSTED?! I'm sure you aren't trying to
take-da-credit for it. Besides, and ASM student should know these
things. Very simple...

-- X-Bios



Tue, 13 Jul 1999 03:00:00 GMT  
 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



Thu, 15 Jul 1999 03:00:00 GMT  
 Doe's anybody know how to fake the keyboardbuffer ?

RE>> I just wonder if someone can tell me how to fake the keyboardbuffer!
RE>> I whould like know how to poke to the memoryaddress of the
RE>> keyboardbuffer so that any other program in Win95 thinks that
RE>> a key just have been pressed.
RE>Well, you can do it via ASM, but I'm not aware that you can POKE it.
RE>Here's how to simulate a keypress (in ASM):
RE>mov      ah,05h
RE>mov      ch,scancode
RE>mov      cl,ascii character
RE>int      16h
RE>retf

You CAN stuff characters into the keyboard buffer in the bios data
segment.

Unfortunately, neither of our methods will work because Win '95 has a
custom keyboard handler that bypasses the BIOS. (I didn't test this, but
I'm pretty sure it's the truth)



Thu, 15 Jul 1999 03:00:00 GMT  
 Doe's anybody know how to fake the keyboardbuffer ?

Quote:

>Hi all you folks out there.

>I just wonder if someone can tell me how to fake the keyboardbuffer!

>I whould like know how to poke to the memoryaddress of the
>keyboardbuffer so that any other program in Win95 thinks that
>a key just have been pressed.

>I'm trying to program a timer funktion that can run in the background
>of windows and then foul other programs running.

>Please help me somebody.

>Henrik

First, you put your cursor before the apostrophe and hit the "DEL"
key.


Sat, 17 Jul 1999 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Doe's anybody knows how to...

2. does anybody know why this code don't work

3. Does anybody know how to make an external applicatoin's window always stay on top

4. Does Anybody Know Of Any CDAudio API's

5. 'TODO doe snot appear to work.

6. Question about 'fake' windows

7. License Error with OCX's anybody, anybody

8. Does anybody know how to create ADD-INS?

 

 
Powered by phpBB® Forum Software