Function like kbhit(), but for deployed console applications.
이전 댓글 표시
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?
답변 (1개)
Walter Roberson
2020년 11월 16일
0 개 추천
https://www.mathworks.com/matlabcentral/answers/143088-real-time-detect-keypress#answer_285124 contains a discussion of possibilities that might perhaps be usable.
카테고리
도움말 센터 및 File Exchange에서 Scope Variables and Generate Names에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!