您需要通过cmd屏幕安装AutoIt“ pip install -U pyautoit”
在脚本页面上输入“ import autoit”
在文件对话框弹出之前,输入以下命令:
autoit.win_active("Open") autoit.control_send("Open","Edit1",r"Path with filename") autoit.control_send("Open","Edit1","{ENTER}")
供您参考https://pypi.python.org/pypi/PyAutoIt/0.3
请注意:单击按钮后,将执行第3节。希望对您有帮助。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句