Sending keyboard entries to a set thread.

Hi.

Is it possible to send keyboard keys to a set thread. I am looking to expand on a current project and only really need a yes or no answer before I begin a deeper browse of google.

Thanks.

xxxxx@hotmail.co.uk wrote:

Is it possible to send keyboard keys to a set thread. I am looking to expand on a current project and only really need a yes or no answer before I begin a deeper browse of google.

Yes, but not with a driver. You can send WM_KEYDOWN, WM_KEYUP, and
WM_CHAR messages to any thread with a message queue, and for the most
part that thread will not know that they didn’t come from a real
keyboard. That can be done from a simple user-mode application.

Keyboard drivers and filter drivers send key information into the
system-wide input queue. The operating system dispatches them to
applications based on focus. The driver has no control over that.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.