However most games either don't have any anticheats at all, or have very limited ones. Specifically you can run most games under a normal user and run the cheat under an administrator user. Let Windows help hide it.
--
[1] Valve has used deep learning for CSGO https://www.pcgamer.com/vacnet-csgo/
[2] Third parties have done work for Dota 2, with hints of official Valve variants coming as well https://www.reddit.com/r/DotA2/comments/8816oh/12_of_all_mat...
I remember something similar for Eve Online bots many years ago. That solution was capturing video frames straight from the video card(so, detectable), but that's basically the same idea.
Monitoring in game behavior can easily detect naive bots, which are most of them(you are logged in 24/7 doing the same thing).
Something like this could probably be built with a Raspberry Pi and some image pattern-matching software. If you just wanted to record some statistics in order to give an edge in certain games, you could probably build a phone app to watch you play.