我正在尝试使用 Pywinauto,我有一个基本程序,它将简单地启动一个程序,然后单击它,如下所示:
from pywinauto import application
app = application.Application()
app.Start_("//PathToGChrome/Google Chrome.exe")
# Google Chrome Starts
app.Google_Chrome.ClickInput(coords=(0,0))
# Returns error:
Could not find 'Google_Chrome` in `dict_keys([])`
但如果我喜欢
app.Start_('Notepad.exe')
# Notepad Starts
app.Notepad.ClickInput(coords=(0,0))
# Foregrounds notepad and clicks in the top left
怎么找不到谷歌浏览器?是因为名字中有空格吗?我如何知道 Google Chrome 的正确名称是什么?