External software isn't allowed to know anything about the state of the game, and so using said software to "record" the state of the game, feedback into itself, and then make decisions for you is against the rules.