Python pyautogui窗口句柄(Python pyautogui window handle)
使用pyautogui是否有办法获取窗口的句柄,以便我可以确保只在该窗口上执行单击? 换句话说,如果我的窗口没有聚焦,则不会发生单击。 此外,如果我的窗口没有聚焦,那么我将其置于焦点,然后执行操作。
是否有任何其他支持此类功能的Python模块?
Using pyautogui is there a way to get a handle to a window so that I can ensure that a click is performed on that window only? In other words, if my window isn't in focus, then the click does not occur. Additionally, if my window isn't in focus then I bring it into focus and then perform the actions.
The way to identify a window could be an ID, window title etc similar to this https://autohotkey.com/docs/commands/WinGet.htm
Is there any other Python module that supports this kind of functionality?
原文:https://stackoverflow.com/questions/43785927
2019-12-06 07:36
相关问答
也许你没有正确使用click功能。 查看函数定义: 单击(x =无,y =无&#x