如何使用 pywinauto python 按 windows 键
How to press windows key using pywinauto python
你好,我想编写一个程序来自动执行 windows 10,但为此我需要使用 pywinauto plz help
通过按 windows 键打开开始菜单
使用这个:
from pywinauto import Application
Application().start(r'mmc printmanagement.msc') # Warning! it spawns child process
# connect to that child process
app = Application(backend="uia").connect(path='mmc.exe')
# print main window with the title
print(app.windows())
app.PrintManagement.dump_tree() # print identifiers for further automation
你好,我想编写一个程序来自动执行 windows 10,但为此我需要使用 pywinauto plz help
通过按 windows 键打开开始菜单使用这个:
from pywinauto import Application
Application().start(r'mmc printmanagement.msc') # Warning! it spawns child process
# connect to that child process
app = Application(backend="uia").connect(path='mmc.exe')
# print main window with the title
print(app.windows())
app.PrintManagement.dump_tree() # print identifiers for further automation