You can look at my tradeskill window if you want to see how I did it. But I can't promise that it will be easily understandable.
I have small segments of leftover/unused code in that window I'm sure...
The premise is to modify the OnShow of the prepare page before the page is shown, telling it to auto-click Begin or not.