I added +100 but now it still clicks on the barrack and clicks on info instead of train troops. Went back to v5.3.4 (exp)
Click($TrainPos[0]+100, $TrainPos[1]) ;Click Train Troops button
If _Sleep(500) Or $RunState = False Then ExitLoop(2)
Click($TrainPos[0]+100, $TrainPos[1]) ;Click Train Troops button
If _Sleep(500) Or $RunState = False Then ExitLoop(2)