Search found 4 matches

by Sickae
10 Oct 2017, 17:24
Forum: C/C++
Topic: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does
Replies: 12
Views: 15569

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!
by Sickae
10 Oct 2017, 14:53
Forum: C/C++
Topic: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does
Replies: 12
Views: 15569

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

Yeah, that's my only guess too, that Send doesn't actually use the SendInput method. I'm trying to figure out the source code but couldn't find anything else that generates keys yet. Any help with that would be greatly appreciated. I know the documentation for SendInput and as I said it works everyw...
by Sickae
10 Oct 2017, 14:12
Forum: C/C++
Topic: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does
Replies: 12
Views: 15569

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

AHK also uses unicode flag. And trust me, my first try was with scancode, but that doesn't even work in the game's chat. Changed to unicode only after I looked up the AHK source code. Here it is: INPUT u_input[2]; u_input[0].type = INPUT_KEYBOARD; u_input[0].ki.wVk = 0; u_input[0].ki.wScan = aChar; ...
by Sickae
10 Oct 2017, 10:06
Forum: C/C++
Topic: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does
Replies: 12
Views: 15569

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

So I'm trying to generate a key with the SendInput method in C++. It works very well until it comes to the specific game I want to use it in. It does the job in the game's chat but not in the game itself. I am using AHK for the script I want currently, but I wish to change to a native language to ge...

Go to advanced search