You must be joking. I use sendinput in my replaybot and it works perfect.
@Detroid Ah ok, I use keybd_event atm. Maybe I should try with sendinput.
@Chezzy could be the solution, I will try! Thanks!
So I've added a line and the key is pressed for 100ms now. But it doesn't work in osu! But the key is clicked... Not even in the osu! main menu it accepts the key clicks. Don't know why it doesn't work.
I'm using keybd_event.
I rewrote the code and I'm now using SendInput. I used a nkey-Rollover test to see, if the key is pressed. It worked. But when I'm using it in osu!, it doesn't.
:x maybe you bind wrong keys ingame?
yes.... it doesn't event works in the main menu...
07-06-2016, 12:32 AM
(This post was last modified: 07-06-2016, 12:51 AM by MrZenArc.)
Update: I tried to make a spin-bot, too. Here is the code: (looks pretty simple, pls keep in mind, that I'm new to c++)
#include <time.h> //Used for Sleep() in the former version of the program
using namespace std;
But I get the same problem like in the Clickbot... It doesn't work for osu! and other games. What did I do wrong?
The Program itself works, but not in games.
EDIT: So I've read a little bit and now I need to know, how I can bypass the directinput in c++.