請教熟悉autoit的先進,我想要UltraVNC可以送出OK進行下一步,但一直都沒有辦法成功
一樣的寫法用在Line的安裝上就可以成功,請教為甚麼是這樣子,謝謝
UltraVNC的寫法
run("D:\UltraVNC_1_3_42_X64_Setup.exe")
WinWaitActive("Select Setup Language","Select the language to use during the installation.")
ControlClick("Select Setup Language","Select the language to use during the installation.","TNewButton1")
Line的寫法
run("D:\LineInst.exe")
WinWaitActive("Installer Language","Please select a language.")
ControlClick("Installer Language","Please select a language.","Button1")
我自己是習慣使用 Advance 寫法,比較唯一性,所以對象相對精準
ControlClick("[Class:TSelectLanguageForm]", "", "[Class:TNewButton;Instance:1]")
或
ControlClick("[Class:TSelectLanguageForm]", "", "[ID:461502]")
你可以參考 Advanced Window Descriptions
https://www.autoitscript.com/autoit3/docs/intro/windowsadvanced.htm