Reputation: 639
I am thinking to make a simple robot app which would record all movements and clicks done by the use and then repeat them.
I can do that with a glasspane but my question is, would a GlassPane work if I tried to use the program while in a game? For example, world of warcraft since bots are popular in MMO's, what else could I use?
I know of mouse hooks, which based on c++ I think, but I do not know how to use them in java. If that is the only way, can someone give me direction to an understandable document regarding using mouse hooks?
Upvotes: 0
Views: 428
Reputation: 639
After a lot of searching and I know a lot of people have looked for this, that is why I am posting so they can also see, I found a perfect library for this, you can find it at :
https://code.google.com/p/jnativehook/
Upvotes: 0
Reputation: 324167
Check out Global Event Listeners for an easy way to listen for all events in your application.
Upvotes: 1