python autoit文件上传

深渊向深渊呼唤

1、下载安装autoit:

https://www.autoitscript.com/files/autoit3/autoit-v3-setup.exe

2、脚本编辑

WinActivate("打开")
ControlSetText("打开", "", "Edit1", "E:\WEB\v4.3.0838.0000.003.0.0.6.0_20200115" )
Sleep(2000)
ControlClick("打开", "", "Button1")

3、python调用

os.system("E://WEB//autolt//test.exe")

 

栏目