Issue
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?
Solution
Is there any other Python module that supports this kind of functionality?
https://github.com/pywinauto/pywinauto
https://pywinauto.readthedocs.io/en/latest/#some-similar-tools-for-comparison lists as other similar Python tools:
- PyAutoGui - a popular cross-platform library (has image-based search, no text-based controls manipulation).
- Lackey - a pure Python replacement for Sikuli (based on image pattern matching).
- AXUI - one of the wrappers around MS UI Automation API. winGuiAuto - another module using Win32 API.
Answered By - Claudio
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.