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?

Thank you very much.

有帮助吗?

解决方案 2

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/

其他提示

Check out Global Event Listeners for an easy way to listen for all events in your application.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top