I can't seem to find a specific answer to this question. How do I click coordinates on the screen without moving the cursor? I am working on a project that will automate installations of programs, but would still like control of the mouse to do other tasks while installations are being processed. Any ideas? Some examples would be awesome as well. Thanks
解决方案
Thank you to those who have tried to help me out. After further research I have found a solution. I have found a way to import AutoIt into Python by using PyAutoIt. There is a ControlClick function that I have been looking for that clicks a control without moving the mouse cursor. Here is an example:
import autoit
import time
autoit.run("notepad.exe")
autoit.win_wait_active("[CLASS:Notepad]", 3)
autoit.control_send("[CLASS:Notepad]", "Edit1", "hello world{!}")
time.sleep(5)
autoit.win_close("[CLASS:Notepad]")
autoit.control_click("[Class:#32770]", "Button2")
Thanks again. This thread can be marked answered and closed :)
本文介绍了一种在自动化安装程序过程中实现屏幕坐标点击的方法,该方法能够在不移动鼠标光标的情况下完成点击操作。通过使用Python结合PyAutoIt库中的ControlClick函数实现这一功能。
1870

被折叠的 条评论
为什么被折叠?



