2 years ago
#53591
Global Assistant
How can I find the subclasses of the app using pywinauto
Hi,everyone
Nowadays I have been working on automating the Flygram app using python package such as pywinauto, pyautogui, however, I got stuck in the problem.
When the script runs and finds the Flygram app, there are two instances of Flygram. The worse thing is that there are no subclasses of Flygram. Even I used pyinspect, it didn't find the subclasses.
Please help me someone who knows how to handle this kind of problem.
Thanks.
from pywinauto.application import Application
import pywinauto.mouse as mouse
import pywinauto.keyboard as keyboard
import time
app = Application(backend='uia').start(r"C:\Flygram_PC\Flygram.exe", timeout=10)
time.sleep(3)
app = Application(backend='uia').connect(path=r"C:\Flygram_PC\Flygram.exe")
python-3.x
pywinauto
0 Answers
Your Answer