1. Does anyone know the internal name of the little tick-in-a-circle that you click to exit the battle results screen?

2. Also, does anyone know what condition or event I can use to test for the existence of a battle results screen?

I'm writing a script that makes the computer play the game for x turns. These two things are all I need and it'll be complete.

(Incidentally, looking in the EBBS script I found your auto-run code. I tested the code for dismissing the diplomacy panel (which is commented out), and it's a little buggy. I imagine that's why it's commented out. I mention this only because it can actually be quite stable if you just close the scroll rather than declining the diplomatic request. You can see my code here at post #27: https://forums.totalwar.org/vb/showthread.php?t=95802)