Solved

Generate keyboard and mouse events

Posted on 2006-10-30
3
202 Views
Last Modified: 2013-11-20
Hi

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?

WIN_XP_Sys_Add_Event_To_keyboardBUTTON_A);
WIN_XP_Sys_Add_Event_To_keyboard(MOVE_UP);

or

Low_Level_keyboard_Interrupt_driver(BUTTON_A);
Low_Level_mouse_Interrupt_driver(MOVE_UP);


Regards
0
Comment
Question by:qcord
3 Comments
 
LVL 48

Assisted Solution

by:AlexFM
AlexFM earned 125 total points
ID: 17833694
Take a look at SendInput function.
To move mouse pointer you can use SetCursorPos function.
0
 
LVL 22

Accepted Solution

by:
mahesh1402 earned 125 total points
ID: 17833976
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 : http://www.codeproject.com/system/keyboard.asp

SendInput : Not works on Win9x / ME.

-MAHESH
0
 

Author Comment

by:qcord
ID: 17857886
Hi

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

Regards
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now