r/javahelp • • Nov 11 '20

Help With Creating an Automating GUI Personal Project

I want to create a program that takes and analyzes screenshots, and simulates mouse clicks/movments. The inspiration came from Code Bullet and his " X Perfect AI" videos.

The issue is that the recent videos that I watched use Python, specifically the PyAutoGUI module. I personally do not prefer Python and I am much more comfortable with Java so I want to create my project in Java.

I understand that a Java.awt.Robot class exists and might serve what I want. However, this class is old (my feeling at least) and not pleasant to use.

My question is: does a (preferably high-level) Java library exist to interface with mouse and keyboard?

I am also open to a change in my strategy. Maybe it is better to only do part of the project in Java and use something like AutoHotkey. Any input is appreciated.

P.S: Not really related to the issue at hand, but I am actually planning to use Kotlin for this project as I wanted to learn the language. Does Kotlin provide more options for what I want to accomplish?

19 Upvotes

Duplicates