Solved

Generate keyboard and mouse events

Posted on 2006-10-30
3
203 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 103
twoTwo  challenge 35 101
ShiftLeft challenge 21 80
Increment column based of a FK 8 19
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

815 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

13 Experts available now in Live!

Get 1:1 Help Now