Solved

Generate keyboard and mouse events

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
Host to IP 7 80
Replacement selected text 2 63
windows 10 how make picture as desktop background 2 65
NotAlone Challenge 20 84
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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