Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
1 vote
0 answers
95 views

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: ...
Jule's user avatar
  • 61
2 votes
1 answer
76 views

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 ...
Эмиль Сакаев's user avatar
0 votes
0 answers
185 views

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 ...
Shaun Roselt's user avatar
  • 4,381
0 votes
1 answer
185 views

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. ...
Zachwuzhere's user avatar
0 votes
0 answers
102 views

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 ...
Han Han's user avatar
  • 482
0 votes
1 answer
479 views

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 ...
Malady's user avatar
  • 275
0 votes
1 answer
158 views

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 ...
bilbo's user avatar
  • 17
1 vote
1 answer
436 views

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 ...
Han Han's user avatar
  • 482
2 votes
0 answers
557 views

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 ...
Aravind A's user avatar
  • 476
2 votes
0 answers
191 views

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 }; ...
sireesha pallela's user avatar
1 vote
1 answer
391 views

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 ...
Kalle Svensson's user avatar
0 votes
1 answer
269 views

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 ...
Vaishnav Kanhirathingal's user avatar
0 votes
0 answers
246 views

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 ...
rimuru 's user avatar
0 votes
0 answers
161 views

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: ...
Gürkan KARADAĞ's user avatar
3 votes
0 answers
423 views

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, ...
Ada Baumann's user avatar

15 30 50 per page
1
2 3 4 5
18