Generate keyboard and mouse events


My intention is to control the keyboard and mouse event input on a number of computers
from one single one and therefore I want my application to send to a "local" application
on all the others computers wich keys and mouse events I want it to perform.

This mean that the local application have to add the keyboard and mouse events
to the operation systems internal buffers.

I dont want a hardware solution due to that 3 of the computers are standing
on an another floor.

The intention is to add keys and mouse events to the normal OS buffers so the current active application
receive the events without any modifications.

Is there a function calls like?




Who is Participating?
mahesh1402Connect With a Mentor Commented:
However for Older systems like Win9x you may  simulate keyboard events using keybd_event() function and Mouse_Event() for Mouse :

Keyboard Events Simulation using keybd_event() function :

SendInput : Not works on Win9x / ME.

AlexFMConnect With a Mentor Commented:
Take a look at SendInput function.
To move mouse pointer you can use SetCursorPos function.
qcordAuthor Commented:

My version of MSDEV on my XP version can not find "SendInput" however searching on it on microsoft homepage
lead me to the keybd_event() function that exist and works, therefore I split

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.