Skip to main content

Posts

Showing posts with the label 7-zip

[自製]autoit v3 安裝7-zip

最近迷上這個功能強大小軟體 可以製作「一鍵安裝」 很弱的練習... *.au3 script: Run("7z432.exe") ;執行程式 WinWaitActive("7-Zip 4.32 Setup") ;等待安裝視窗出現 Send("!i") ;alt+i,按下一步 do WinWaitActive("7-Zip 4.32 Setup") sleep ("1000") Until WinWait("7-Zip 4.32 Setup","Completing the 7-Zip 4.32 Setup Wizard",1) ;接下來一直無法繼續,可能是因為主視窗"7-Zip 4.32 Setup"名稱未變 ;只好做一個判斷式,並延遲幾秒 ;再用autoit vs內附的window info找出判斷的關鍵句"Completing the 7-Zip 4.32 Setup Wizard" Send("!F") ; 按Finish完成安裝