pywinauto如何选择多级菜单
时间: 2023-10-19 11:28:10 浏览: 156
在Pywinauto中,要选择多级菜单项,可以使用menu_select()方法。该方法的参数是根据菜单项的标题使用 "->" 连接起来的,来控制多级菜单项的选择。例如,要选择菜单项 "转换工具->EXE/LXE转成MP4",可以使用以下语句:
```
dlg_spec = app.window(title='屏幕录像专家 V2017')
dlg_spec.menu_select(r"转换工具->EXE/LXE转成MP4")
```
这样就可以选择多级菜单项了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [吾八哥学Pywinauto(三):使用Pywinauto操作菜单的方法](https://blog.csdn.net/weixin_39562327/article/details/110117973)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [pywinauto 使用](https://blog.csdn.net/qq_37193537/article/details/81207907)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文