I am trying to launch Make Preview with desired preferences and press the default button. I got everything working but Max is left in a state where closing or exiting Max 2010 Sp1x64 gives me a "3ds Max application has stopped working" error message. Here is a stripped down version that just opens Make Preview and presses the default button that still leaves max in an unstable state. Just wondering if this is a bug or I am doing something wrong.
--script starts here
hWND = DialogMonitorOPS.GetWindowHandle()
if ((UIAccessor.GetWindowText hWND) == "Make Preview") then
UIAccessor.PressButtonByName hWND "Create"
fn f_myMakePreview T_optionsToCheckArray T_renderOutputPercentage pushCreate:true=
DialogMonitorOPS.Enabled = true
DialogMonitorOPS.RegisterNotification f_ConfigureCallback id:#PokeMakePreview2
DialogMonitorOPS.Enabled = false
f_myMakePreview (ary) 35 pushCreate:true