1.下載地址:https://www.autoitscript.com/site/
2.
通過這個進行下面操作
3.
4.
通過這個編寫【注意“打開”是你 當前的彈層名字;保存格式爲au3,如upload.au3】
;ControlFocus("title","text",controlID) Edit1=Edit instance 1
ControlFocus("打開", "","Edit1")
; Wait 10 seconds for the Upload window to appear
WinWait("[CLASS:#32770]","",10)
; Set the File name text on the Edit field
ControlSetText("打開", "", "Edit1", "C:\Users\hui\Desktop.zip")
Sleep(2000)
; Click on the Open button
ControlClick("打開", "","Button1");
5.
通過這個 把au3 轉換爲exe
6.在代碼中調用