'How do I connect from pywinauto to win32gui?
app = pywinauto.Application(backend='uia').connect(path='notepad.exe')
rect = win32gui.GetWindowRect(app)
print(rect)
I grabbed the handle using the filename with pyautogui.
I need the getwindowrect function of win32gui to know the window position information, but I don't know how to connect it.
Thanks for letting me know.
I tried to grab the handle, but they didn't fit and I couldn't connect.
Since I was only holding the handle, I expected to be able to connect without any problems.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
