Matlab dialog boxes control
Afficher commentaires plus anciens
Hi , can I control which dialog boxes matlab allowed to popup some where in the settings ? For example I have an exe file created from matlab project which pops up runtime errors everytime the input is incorrect and I would like to block that ?
Any ideas would be great , thanks. Yuri
Réponses (3)
William
le 18 Avr 2015
0 votes
can't you write a code inside the exe file that cancels the rest of the code if an incorrect input is recorded?
Then you won't get error popups
3 commentaires
yuri tupizin
le 18 Avr 2015
William
le 18 Avr 2015
are these Matlab or Windows popups?
yuri tupizin
le 18 Avr 2015
Image Analyst
le 18 Avr 2015
0 votes
If the popups are coming from the compiled executable and you don't have access to the source code, it would be pretty tricky to suppress them. I suggest you talk to the author about the reason why and when the popups occur and see if there is a better way that will make you happy.
1 commentaire
yuri tupizin
le 18 Avr 2015
Image Analyst
le 18 Avr 2015
0 votes
You'd have to find the running process and then send an enter key to it. See attached demo that finds running processes. Message boxes in MATLAB seem to come up as a separate process. You can use java robot to click the OK button or send an Enter key.
3 commentaires
yuri tupizin
le 19 Avr 2015
Image Analyst
le 19 Avr 2015
That doesn't matter. What I said/meant was that you're going to have to have a separate program running that is always watching the process list and springs into action when it sees a new process created by MATLAB and then clicks the default button. It's not simple, basic programming - that's why I said it could be tricky - and it may be too advanced for you right now.
yuri tupizin
le 19 Avr 2015
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!