Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无论如何,我正在构建一个在后台运行的机器人。这个机器人需要我点击。当然,我希望能够在机器人运行时做其他事情。
所以我想知道是否可以在非活动窗口的某个位置模拟鼠标点击。
如果这是可能的,如果你们中的任何人能帮助我,我将不胜感激。
java.awt.Robot
但是,单击活动窗口将激活它。