Ok, I have a game that has only keyboard control. So I tried to detect mouse clicks and send it to the keyboard, but the game wasn't detecting the keys, it is maybe using low-level inputs.
So I tried AHI. But if I launch the game while my AHK script is launched with AHI, the game can't detect inputs (and sending inputs from my script isn't detected by the game as well).