256 questions
1 vote
0 answers
95 views
What is the maximum input array length of SendInput?
I want to use the SendInput function (winuser.h) to simulate huge amounts of inputs. I have no idea tho what the maximum input array length is. I checked the docs, but I can't find anything there: ...
2 votes
1 answer
76 views
Simulating a long click in a game
I wanted to try writing a bot for a game (it seemed like an interesting task logic-wise), but the problem arose with the most basic function of simulating a click. A normal click works perfectly, but ...
0 votes
0 answers
185 views
How do I send keyboard input to a DirectX9 game using SendInput in Delphi?
I found this answer saying the following: You can use the unmanaged SendInput function for this. It posts the input on a level lower then DirectInput. It is very important to know what keycodes to ...
0 votes
1 answer
185 views
Why is SendInput not respecting key up/down flags
I'm trying to emulate key down and key up in windows. However the behaviour is not working as expected. In main(), when I press 'a', the 'b' key should be pressed and stay pressed for 3 seconds. ...
0 votes
0 answers
102 views
C# SendInput will not move correctly when using it in a loop
Situation: Today I am trying to optimize my remote control, and I need to use SendInput, which is in the class library, to move the mouse from one place to another continuously. However, I found that ...
0 votes
1 answer
479 views
Why should I use SendInput over mouse and keybd events? [duplicate]
When looking up how to use keybd_event on Microsoft Learn, it says: Note This function has been superseded. Use SendInput instead. But when looking at how to use SendInput, it looks a lot more ...
0 votes
1 answer
158 views
I want to execute two simple input functions at the exact same time
i'm new here and new in any other than C, too litle in C# and none of C++ I heard about C not being capable of multithreading, because it's read line by line, POSIX and stuff, but what i want is to ...
1 vote
1 answer
436 views
SendInput can not properly simulate keyboard in C#
I am trying to simulate mouse and keyboard events by using SendInput() in C#. The mouse simulated perfectly, while the simulation for the keyboard is not working. In that case, I tried to use another ...
2 votes
0 answers
557 views
How to simulate a hardware key press by using SendMessage() intead of SendInput()?
I have been trying to screen capture a game that blocks the Windows GDI API (possibly via API hooking) and hence I cannot use the good old BitBlt() for capturing the screen, unfortunately. Whenever I ...
2 votes
0 answers
191 views
Why SendInput() is not working for enter key on Lock screen?
I'm trying to simulate the "Enter key" using SendInput(), it is working on all the scenario's like SignOut, Restart, Shutdown etc.., except Lock. Here's the code, INPUT inputs[2] = { 0 }; ...
1 vote
1 answer
391 views
SendInput() malfunctions in Notepad
I've implemented a hook procedure that catches some Alt+letter key combinations and injects predefined strings. An example of a hook procedure is shown below. It detects the hotkeys LeftAlt+Q and ...
0 votes
1 answer
269 views
SendInput won't execute correctly via Java Native Access for mouse movement [duplicate]
Intent I am trying to create a localized implementation of cloud gaming where a user's own PC serves as the server. What I am trying to achieve is the last piece stopping me. That is implementing ...
0 votes
0 answers
246 views
Is the latency for the sendinput / receiving raw input the same or almost the same for all programs?
I'm using winapi SendInput with scancodes to simulate keyboard input to a game, and at the same time I want to measure the timing of the input being received, but unfortunately I've no access to that ...
0 votes
0 answers
161 views
Unblock Mouse Move
I'm writing a program that simulates mouse movements for an application, but this program blocks mouse movement. Is there any way to circumvent this problem? Solutions I tried and results: ...
3 votes
0 answers
423 views
Injecting Touchpad input on Windows
Background I'm working on a program that shares input devices over a network to pass them into virtual machines. Currently, it works for Linux hosts and Linux guests. It uses the evdev interface, ...