Solved

Generate keyboard and mouse events

Posted on 2006-10-30
3
205 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to determine file rename from EventLog ? 2 57
countEvens challenge 2 113
Line meaning 9 89
Path of Workbook 3 86
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 …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

735 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