inputemu function works continuously

조회 수: 26 (최근 30일)
Renato Pereira
Renato Pereira 2021년 1월 26일
답변: Jan 2021년 1월 26일
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?

답변 (1개)

Jan
Jan 2021년 1월 26일
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);

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by