How to generate mouse events for minimized Java window?

Viewed 26

I want to generate mouse click events for a Java application. I am aware that there is java.awt.Robot, which would allow me to do this. However, I would like that the generated mouse events do not actually affect the "cursor". That is, I would like to be able to minimize the window of the Java program and do other things with the mouse cursor, while mouse events are still generated for that program. How could I do that?

Edit: Furthermore, I cannot be assumed that there is a number of buttons that I need to interact with. Rather I'd like to generate mouse click events as if I had clicked at a certain position within the window.

0 Answers
Related