Auto-translated
1) You haven't tried the most obvious option: disabling AI and MoveHero.
2) If you immediately set MoveHero to capture a castle, I know from experience that it might not work. First, you need to make it capture the garrison, and then the castle. Moreover, even this option is not guaranteed: in one of my maps ("Gnomomania"), I remember having to teleport the heroes through the garrison. However, the situation was slightly different there: there were not one, but three heroes, and instead of MoveHero, I used MoveHeroRealTime.