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.在代码中调用
原文地址:https://www.cnblogs.com/yanhuidj/p/12628323.html
时间: 2024-09-29 02:15:34