Synthesizes keystrokes, mouse motions, and button clicks.
Questions tagged [sendinput]
251 questions
0
votes
0 answers
Determine the origin of a keystroke message
I'm sending/simulating mousekeystrokes via SendInput and monitoring this key with a LLHook.
Of course the messages by SendInput get logged by the Hook - but now i'm trying to to determine inside the HookProc if the message comes from Sendinput or…

user4672571
- 13
- 2
0
votes
3 answers
C++ - Simulating keystrokes using SendInput method, failure to distinguish rightctrl key
I have very little experience in C++, and I'm completely unfamiliar with the SendInput method. I've setup my laptop (with UK keyboard) via a registry modification, to create a crash dump whenever the right control key is held down and scroll lock is…

Albert F D
- 529
- 2
- 13
- 33
0
votes
1 answer
Do I need to introduce delays when simulating a mouse click with SendInput API?
I need to be able to simulate a mouse click on a control in another process. I came up with the following method:
BOOL SimulateMouseClick(POINT* pPntAt)
{
//Simulate mouse left-click
//'pPntAt' = mouse coordinate on the screen
//RETURN:
…

c00000fd
- 20,994
- 29
- 177
- 400
0
votes
3 answers
Python Mouse Movement Emulation in Games
I'm looking into using the Kinect to play video games. This requires the emulation of both keyboard and mouse events. I've figured out that keyboard events with ctypes' SendInput() works in both Skyrim and Minecraft. I've also found that ctypes'…

MerrrLocke
- 1
- 1
- 2
0
votes
1 answer
SendInput function handled in notepad/wordpad as if CTRL modifier is down
BACKGROUND:
I am writing a 32 bit WPF (C#) application which functions as an on-screen keyboard. It publishes the selected key strokes to the focused window as if physical keys had been pressed, exactly as the Microsoft On-Screen Keyboard, OSK.exe…

Julius
- 735
- 1
- 9
- 25
0
votes
1 answer
Make another program think I'm holding down the spacebar for a second
I'm trying to write a program that brings another program to the front and hold down the spacebar for a second.
I've researched all sorts of SendMessage, PostMessage, SentInput, etc ... and none of them seem to work, or else I'm just doing it…

Jonathan Plumb
- 417
- 1
- 4
- 12
0
votes
2 answers
sending and receiving data from android app to another
I'm building an android app , I need to contact with another app called Easy taxi .
this app need to fill some data like mobile number and destination, the problem is my app help blind people so I need to send this data from my app without the need…

Ahmed Labib
- 15
- 1
- 5
0
votes
0 answers
Not working keyboard after using of InputSimulator (Send input wrapper)
I had implemented a remote keyboard.
From the slave side , I inject event with Inputsimulator.
After i close the slave program my keyboard seems to not working,
It receives input,but for example if i press "c" it get "space" and so on...
Someone…

Audette
- 47
- 6
0
votes
2 answers
SendInput scan code on Windows 7 x64
I am working with a WPF application sending keys to a game. I opened spy++ to observer s as a key press on the keyboard. I then press my button on the application and I noticed a different scan code in spy++ messages. Could this be somthing to do…

Stanomatic
- 421
- 6
- 8
0
votes
1 answer
SendInput() does not produce any visible output
I am having problems with getting SendInput function to produce any sort of output. All structs are defined as following ( I have left mouse and hardware ones out) :
[StructLayout(LayoutKind.Explicit)]
public struct INPUT
{
…

AlexanderM
- 81
- 1
- 2
- 7
0
votes
2 answers
Could not send backspace key using ::SendInput() to wordpad application
I have used sendinput() function and windows keyboard hooks to develop a custom keyboard for indian languages.
Project is in google code here: http://code.google.com/p/ekalappai
The keyboad hook and sendinput functions are placed in a win32 dll. And…

Mugunth
- 2,368
- 1
- 21
- 28
0
votes
0 answers
Sendinput storage and usage from a variable
I'm rather new to c++ and wondering if any could assist with a project I'm working on.
In my code at the moment I'm gathering information from a file that has information for the program and then a key to send when the criteria of that information…

LightWrath
- 65
- 7
0
votes
1 answer
Why Is App Force Closing When I Submit Text?
I'm going from no programming experience to learning Android. I'm doing the online tutorials from Google using Eclipse with ADT plugin.
The last tutorial in the beginners section is having the user input a statement and starting a new activity that…

ottoandersson
- 3
- 2
0
votes
1 answer
Automating Key Presses with SendInput
When I attempt to use SendInput to send single key presses, and combined keypresses, I can't get my program to hold the keyboard button until commanded to be released. With the code below I am ables to send the character 'a', and 'A', by hitting…

Magnus
- 6,791
- 8
- 53
- 84
0
votes
0 answers
SendInput is not working as desired in Win xp
I am working on one project where I am using INPUT structure and SendInput() to send Input command to another window using Hook.
I am using following code to get the handle of the last visited Application Window.
INPUT input;
…

A B
- 1,461
- 2
- 19
- 54