问题
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.
来源:https://stackoverflow.com/questions/6497825/simulate-mouse-clicks-at-a-certain-position-on-inactive-window-in-java