auto script dlg complete