Function like kbhit(), but for deployed console applications.
Mostrar comentarios más antiguos
I'd like to use the kbhit() (See link below) function in a deployed console application so that I can detect a user keypress while the application is running in a loop.
kbhit uses the line:
mde = com.mathworks.mde.desk.MLDesktop.getInstance;
but that doesn't exist in the deployed console environment. Anyone know the equivalent object or another alternative?
Respuestas (1)
Walter Roberson
el 16 de Nov. de 2020
0 votos
https://www.mathworks.com/matlabcentral/answers/143088-real-time-detect-keypress#answer_285124 contains a discussion of possibilities that might perhaps be usable.
Categorías
Más información sobre Scope Variables and Generate Names en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!