This week's book giveaway is in the
We're giving away four copies of
Head First Android
and have Dawn & David Griffiths on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Robot keyPress issue
Joined: Feb 16, 2011
Feb 16, 2011 07:14:03
I'm trying to send keystrokes (like a Virtual keyboard) from my
code but I encounter some issues .. it works perfectly on normal applications (for example .. Notepad, browsers etc) but not on games (fullscreen or windowed mode).
This is the stripped code I'm using :
import java.awt.Robot; import java.awt.AWTException; import java.awt.event.InputEvent; Robot robot; robot.keyPress(KeyEvent.VK_A); robot.keyRelease(KeyEvent.VK_A);
Can you please help?
I agree. Here's the link:
subject: Robot keyPress issue
keypress + Robot + Method
Java Robots problem
is this possible?
how this line works?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015