訪客只能看到部份內容,免費 加入會員 或由臉書 Google 可以看到全部內容
下面是引用冰漾於2006-09-1 19:32發表的 : 不知道參數這樣下對不對, 要看使用者手冊才知道...Send("!n")簡單來說就是讓程式送出 Ctrl+N 或 Alt+N 的動作(沒有仔細研究)...而且 WinWaitActive 意思是叫 AutoIt 等待程式 Active 之後才執行動作(我的意思是系統必須focus在該程式上面)....假如都縮起來, 系統的focus就不在這個程式上面, 怎麼執行安裝?.......
下面是引用v60i於2006-09-2 09:47發表的 : Send("!n")→是指Ctrl+N ← ×Send("!n")→是指Alt+N ← √.......
下面是引用yc421206於2006-09-2 16:38發表的 :謝謝各位的指正,不知有沒有其它的指令可以使安裝畫面隱藏的呢
下面是引用莫力思雷靠唄於2006-09-2 16:43發表的 : 為何話一定要講兩次呢還有你的安裝程式畫面一定要在最上層,AUTOIT 才會有動作不然他判別不到視窗的名稱是無法執行完成的
下面是引用 yc421206 於 2006-09-02 18:22 發表的 : 謝謝各位的回答真的沒辦法隱藏阿~"~那還是回去玩vb好了
Dear all:小弟根據板上大大所推薦之autoit軟體,進行自動安裝,小弟也因此上網晃了一下得知如何使用,以下是小弟所撰寫之程式碼,其中使用@SW_HIDE指令,想要將安裝畫面縮至最右下角,但是確無法隱藏,我猜大概是 Send("!n")指令的原因,請教版上高手是否有其他寫法,謝謝!複製程式 ; 執行安裝精靈 Run("D:\wpi\Install\Insight\Designer9\Des90.exe") WinWaitActive("Windows Installer") WinSetState("Windows Installer" , "" , @SW_HIDE) ; 開始安裝 WinSetState("Micrografx Designer 9.0 Setup" , "Welcome to the Micrografx Designer 9.0 Installation Wizard" , @SW_HIDE) WinWaitActive("Micrografx Designer 9.0 Setup" , "Welcome to the Micrografx Designer 9.0 Installation Wizard") Send("!n") ; 授權認可 WinWaitActive("Micrografx Designer 9.0 Setup" , "License Agreement") Send("!a") Send("!n") ; 使用者資訊 WinWaitActive("Micrografx Designer 9.0 Setup" , "User Information") Send("!a") Send("{ENTER}") ; 安裝資料夾 WinWaitActive("Micrografx Designer 9.0 Setup" , "Destination Folder") Send("!n") ; 安裝類型 WinWaitActive("Micrografx Designer 9.0 Setup" , "Select Installation Type" , "&Next") Send("!t") Send("!n") WinWaitActive("Micrografx Designer 9.0 Setup" , "Ready to Install the Application" , "&Next") Send("!n") ; 安裝程序 WinWaitActive("Micrografx Designer 9.0 Setup" , "Updating System") WinSetState("Micrografx Designer 9.0 Setup" , "" , @SW_HIDE) ; 安裝完成 WinWaitActive("Micrografx Designer 9.0 Setup" , "Micrografx Designer 9.0 has been successfully installed") Send("{ENTER}") RegDelete("HKEY_CURRENT_USER\Software\iGxMedia")[/pre]