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?

Kategorien

Mehr zu Scope Variables and Generate Names finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2017a

Gefragt:

am 16 Nov. 2020

Beantwortet:

am 16 Nov. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by