See How to determine if a mouse click is legal or automated? In fact, this suggests that it is impossible to do it reliably, due to several reasons, one of which is that the programmer will find a way around all that you are trying to do.
As suggested, heuristic seems to be a viable option. Control variable mouse speed, skipping speed and accuracy, pauses, sudden jumps, etc. The higher the heuristic, the more the programmer will have to make his bot closer to the real player, and the less successful he will get.
PS: Even for well-known shooter games such as Counter Strike, there are hacks that completely remove for you, so they donβt understand how / I donβt want to stop it.
amrav source share