Ok, so I'm working on a bot for micromanaging units. And I was wondering how to have it give orders without using the mouse or keyboard or going out of sync. I don't care what it looks like in a replay, as long as it doesn't cause a desync or get detected by Warden. I'm currently trying to make it work as an external program, but I don't mind if I have to inject some code to make this work. My idea of what needs happen is to have it call some function in the game that is normally triggered by user input, or change some memory location that stores the current order. But if I'm wrong, please tell me.