Can I stop query on start via script?

Yes!

mywindow.setQueryOnStartEnabled(false);