Sometimes the game will ask you if you'd rather have a hitter hit instead of the pitcher before they reach the batters box. Just an FYI though, energy is calculated by pitch/play, so as long as you sub them out before a pitch is thrown, it's the same as if they had been subbed out before reaching the box.