inputemu function works continuously

26 visualizaciones (últimos 30 días)
Renato Pereira
Renato Pereira el 26 de En. de 2021
Respondida: Jan el 26 de En. de 2021
I want to use inputemu to simulate a <return/enter> key. However, when I use this function it doesnt stop, it presses <return/enter> continuously.
inputemu('key_normal','\ENTER');
How do I use inputemu to only press it once?

Respuestas (1)

Jan
Jan el 26 de En. de 2021
Perhaps this is sufficient already:;
robot = java.awt.Robot;
robot.keyPress(java.awt.event.KeyEvent.VK_ENTER);
robot.keyRelease(java.awt.event.KeyEvent.VK_ENTER);

Categorías

Más información sobre Point Cloud Processing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by