Okay, so this is all based off of assumption. I'm going to make a list of what I think you're trying to do, please clear it up a bit.
I assume that you want to:
1. Start up the Dota 2 game and search for a specific replay.
2. Once the replay has finished, you want to exit the game.
3. Once the game is exitted, you want to wash-rinse-repeat.
I guess my question here is, do you want the game to restart AFTER BOTH labels were executed or after only one of them?
A very sloppy and quickly written work-around.
CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
CoordMode, ToolTip, Screen
Replay := "playdemo replays/209928703.dem"
Run Dota 2.url
Pixelgetcolor, Color, 750, 580
Pixelgetcolor, Color2, 831, 344
if (Color = 0x3E3E3E)
Clipboard :=Replay ;view replay
Click 750, 580
if (Color2 = 0x393B37)
Clipboard = Exit ; quit game