Solved

Generate keyboard and mouse events

Posted on 2006-10-30
3
201 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 105
sumDigits challenge 9 95
mapBully challenge 6 88
unix example issues 18 44
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: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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 gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 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

10 Experts available now in Live!

Get 1:1 Help Now