Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with Clickbot

I'm currently working on a clickbot for osu!. The Program simulates keypresses. It works, but when I use it in osu! it doesn't accept the clicks. I'm quite new to c++, so...
Big Grin
I've heard, that osu! just accepts clicks that comes from the hardware and ignores simulated ones. But how can I bypass that
Sorry for my bad english tho.
You must be joking. I use sendinput in my replaybot and it works perfect.
(07-02-2016, 10:57 PM)MrZenArc Wrote: It works, but when I use it in osu! it doesn't accept the clicks.

Might be because you're not pressing down the keys for too long. You want to keep a key held down long enough so that the game running at a minimum of 60fps will be able to detect it. In this case, the bot should hold a key down for a minimum of 0.017 seconds (17 milliseconds) to be safe.
@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...
try running osu! in windowed/fullscreen windowed
(07-05-2016, 09:42 AM)redbluewhite Wrote: try running osu! in windowed/fullscreen windowed

Already tried.

Forum Jump:

Users browsing this thread: 1 Guest(s)