In what ways can Matlab continue running while a window pops up?
7 ビュー (過去 30 日間)
古いコメントを表示
Hi there,
I am running a script which calls an executable (of which I cannot acces the source code) multiple times. From time to time during the run (which can take several hours) Matlab stops running because the executable gives a pop-up window as intermediate output. In order to continue running, I have to click "ok".
The problem is that I don't have the time to click this button over and over again (about every minute during a run of several hours). In what ways can I prevent that Matlab stops running while a window pops up? Can I suppress this pop-up window or make Matlab automatically click "ok"?
Best regards, Simon
採用された回答
Jan
2013 年 6 月 10 日
You can emulate a keypress in another application:
- Java-Robot: http://undocumentedmatlab.com/blog/gui-automation-robot/
- FEX: inputEmu
- Undew Windows you can run: FEX: textInject
2 件のコメント
Irl
2013 年 8 月 30 日
編集済み: Irl
2013 年 8 月 30 日
Simon -- I have been trying to get AHK to work with Matlab (e.g., type certain special characters) but Matlab seems to ignore anything coming from AHK. I'm still on Matlab 2010; do you have a version of Matlab which plays well with AHK? Or is is just that you run AHK in some kind of loop which looks for the window from your executable and robo-clicks the "OK" button, rather than interacting directly with Matlab?
その他の回答 (2 件)
David Sanchez
2013 年 6 月 10 日
Hi, you could solve the issue in case you had access to the source code of the executable that pops up the cumbersome window. If you can not access that source code, you can not modify the way the pop-up window behaves.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Software Development Tools についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!