2
我是非常新的windows automation.I自動wireshark使用autopy.Now我需要打開一個文件wireshark.I沒有swapy tool.I也dot想在pyshark.I做它只是想嘗試只在pywinauto.so我想是這樣的:Pywinauto菜單選擇錯誤 - Wireshark
from pywinauto import application
print("Starting the proogram")
app=application.Application()
app.start_(r"C:\Program Files\Wireshark\Wireshark.exe")
win = app.window_(title_re = ".*Wireshark Network Analyzer.*")
win.MenuSelect("File->Open")
,但我得到這個錯誤如下:
pywinauto.findwindows.WindowNotFoundError
請幫我在這裏用這個guys.Thanks提前
做了回答幫助? –