Where did I go wrong
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi all
pause(1.5)
import java.awt.Robot;
import java.awt.event.*;
key =Robot ;
handles.n=str2double(get(handles.edit1,'string')) ;
for i=1:handles.n;
key.keyPress (java.awt.event.KeyEvent.VK_Z);
pause(1)
end
once the keyboard is the Z Clicked. but the notebook is working properly. the program is not in the game.
please help me.
(I'm Working guide.)
댓글 수: 0
채택된 답변
Walter Roberson
2011년 5월 6일
Which notebook is working properly? What game is being referred to?
I notice that you have not send release events for the keys pressed.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!