Where did I go wrong
    3 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
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 Commenti
Risposta accettata
  Walter Roberson
      
      
 il 6 Mag 2011
        Which notebook is working properly? What game is being referred to?
I notice that you have not send release events for the keys pressed.
4 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Environment and Settings in Help Center e File Exchange
			
	Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

