2 Different GUI needs the same inputs

1 view (last 30 days)
Fabio
Fabio on 20 Mar 2023
Commented: Rik on 21 Mar 2023
Hello, i have opened 2 different Matlab IDES that runs separately the same program, i need to start 2 equal programs in matlab that have 2 identical GUI interface, but i need them to read the same keyboards inputs and they do not, they only read it when i click on the GUI, is there a solution ?
  2 Comments
Rik
Rik on 21 Mar 2023
@chrisw23 This looks like an answer to me, especially if you slightly expand your post.

Sign in to comment.

Answers (1)

Rik
Rik on 20 Mar 2023
There is no general solution to do this, because the two instances of Matlab are separate.
If Matlab were able to do this, it could function as a key logger.
A workaround would be to have the active GUI write the key presses to a file, which the non-active GUI can then read with a listener.

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by