Simulate mouse clicks at a certain position on inactive window in Java?

ぃ、小莉子 提交于 2019-12-05 02:05:02

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!