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

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.
Reply
#2
You must be joking. I use sendinput in my replaybot and it works perfect.
Reply
#3
(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.
Reply
#4
@Detroid Ah ok, I use keybd_event atm. Maybe I should try with sendinput.

@Chezzy could be the solution, I will try! Thanks!
Reply
#5
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.
Reply
#6
Update:

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.
Reply
#7
:x maybe you bind wrong keys ingame?
Reply
#8
yes.... it doesn't event works in the main menu...
Reply
#9
try running osu! in windowed/fullscreen windowed
Reply
#10
(07-05-2016, 09:42 AM)redbluewhite Wrote: try running osu! in windowed/fullscreen windowed

Already tried.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)