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 Center および File ExchangePoint Cloud Processing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by