Simulate mouse clicks at a certain position on ina

2019-03-30 16:49发布

问题:

Anyways, I'm building a bot to run in the background. This bot requires me to click. Of course, I want to be able to do other things while the bot is running.

So I was wondering if it was possible for me to simulate a mouse click at a certain position on an inactive window.

If this is possible, I would greatly appreciate it if any of you could help me.

回答1:

java.awt.Robot

Clicking into an active window is going to activate it, though.