Accessing the key buffer?

Started by
3 comments, last by clashie 15 years, 3 months ago
I am wondering how I would go about making something like a virtual keyboard. I'm not too sure how I would send a key to the key buffer (If this is what I must do in order to accomplish this) Is there a key buffer for the whole computer? And is it possible to send a key to it without using the keyboard? I did read about there being a key buffer allocated by BIOS, but then I read that it only reads the keys within console programs. Is this right? I'm a little lost on what to do.
Sure i will write my signature, just gimme a piece of paper
Advertisement
Which OS?
On Windows (Vista) if that makes any difference. And using C++.
Sure i will write my signature, just gimme a piece of paper
By the time Windows is running, the BIOS is pretty much out of the equation. All modern operating systems (Windows included) have their own drivers for talking directly to the hardware.

In order to create a virtual keyboard, you can use the SendInput API.
SetWindowsHookEx / SendInput should put you in the right direction. Take a look at them.

This topic is closed to new replies.

Advertisement