iT邦幫忙

0

autoit 偵測視窗問題

目前寫自動安裝寫到一半卡住,不管用什麼偵測條件,他就是不在那個視窗做動作...
想問是哪邊要改呢?

https://ithelp.ithome.com.tw/upload/images/20190329/201056808QjIe3v20y.png

由上到下的抓取值是
Button2
Button3
Button4
edit1
edit2
Button6
Button7
Button8
edit3
edit4
Button9

語法

;輸入連線密碼
WinWaitActive("TightVNC Server: Set Passwords","")
ControlClick("TightVNC Server: Set Passwords","","button4")
ControlSend("TightVNC Server: Set Passwords","Password for Remote Access","[CLASS:edit;INSTANCE:1]",123)
ControlSend("TightVNC Server: Set Passwords","Password for Remote Access","[CLASS:edit;INSTANCE:2]",123)
ControlClick("TightVNC Server: Set Passwords","","Button7")
ControlClick("TightVNC Server: Set Passwords","","Button9")
thwu iT邦新手 5 級 ‧ 2019-04-02 09:50:40 檢舉
太久沒用 AutoIT,沒法直接正面回答。
不過我印象中 MSI 可以套用設定檔來安裝,也許可以朝這個方式研究看看。

尚未有邦友回答

立即登入回答