pause program until a specific key is pressed, while in background.

Hi everyone, i have this matlab code sending info to another app. While working , i've full screen on this secondary app, and matlab is on background.
Matlab will run some code up to a point, then it needs to be stopped,i need to press a specific button (for example right mouse click) to allow Matlab resume its operation.
I've tried differents pause/wait methods, but they all require a focus on Matlab or on a figure. The problem is to get the thing to work while matlab is on background.
Thank you for your attention.

3 件のコメント

Rik
Rik 2018 年 7 月 22 日
This might be possible with some listener if that secondary app can change something that Matlab can watch, like a file. You might also be able to hack something together with autohotkey.
Federico Ferraro
Federico Ferraro 2018 年 7 月 22 日
The secondary app only receives data from Matlab, but could not send data to Matlab. Also the app does not save files while working.
Rik
Rik 2018 年 7 月 22 日
You might still be able to get Matlab to detect something that autohotkey can do

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEnvironment and Settings についてさらに検索

タグ

質問済み:

2018 年 7 月 22 日

コメント済み:

Rik
2018 年 7 月 22 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by