Search found 2 matches

by antrox123
19 Apr 2018, 09:19
Forum: C/C++
Topic: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does
Replies: 12
Views: 15695

Re: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does

There are 2 method to do this. #1 actually does not work in most games but is considered the "better" one to C++ community. Nevertheless, #2 works always and as good as #1. So go and use #2 in any case and u are fine. #1 INPUT KEY; KEY.type = INPUT_KEYBOARD; KEY.ki.wScan = 0; KEY.ki.time = 0; KEY.ki...
by antrox123
17 Apr 2018, 15:51
Forum: C/C++
Topic: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does
Replies: 12
Views: 15695

Re: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does

I was searching in the source code for hours now and tried a lot more different methods. And finally I made it to work. :) As it turns out the problem was indeed with the flags, I had to set it to 0 and it works like a charm. No idea how to close the thread, so I'll just leave it be. Thank you! hel...

Go to advanced search