my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes Keylistener trouble Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Keylistener trouble" Watch "Keylistener trouble" New topic

Keylistener trouble

Jamie Vaugh

Joined: May 09, 2009
Posts: 19
Currently I enjoy playing many games, these games can be a pain and very boring to get gold/items etc.. so I've recently made an auto clicker of which will click in place but the problem is when the clicker is activated I've made the GUI set to 'setvisivle(false)' so the GUI doesn't get in the way, currently as the Java clicker has clicked off the GUI and is now clicking on another window, there isn't any ways to stop this clicking, so I've recently tryed making it so when i press 'F12' it will 'setVisible(true)' and stop the clicking, but I don't know any way to make the listener, listen for keys off the Java application.

Need help :S
Chris Nash

Joined: May 20, 2009
Posts: 28
I'm sorry, I'm having trouble understanding what it is you want to do. You want to listen for keys pressed in a Java application, but you you don't have access to the Java source?

- Frecklefoot
"What you are good at is not as important as being good at something." --Robert B.Parker
I agree. Here's the link:
subject: Keylistener trouble
It's not a secret anymore!