Right now I'm changing SendInput to use mouse simulation instead of pressing keys. Hopefully this will fix some of the lagging caused by pressing keys too fast / too much.
Thank you for your interest guys! We went from about 20 stars to 200+ stars, landing us on the 'trending' section of github! We could vastly improve the program by hooking into the game's memory (Such as the totally sick mapping done in https://www.youtube.com/watch?v=3YYyGGgoWfs). But this project really just explores computer vision and ML (Kinda, tensorflow is still being worked on).
I'd just like to say that your code is extremely easy to read and follow, and this was a pleasure to do.
Thanks a ton for showing a real-world example of how to use OpenCV. The examples given by the official documentation are cute, but they're individual tools that you have to combine intelligently to make something useful.
Right now I'm changing SendInput to use mouse simulation instead of pressing keys. Hopefully this will fix some of the lagging caused by pressing keys too fast / too much.