2013-07-08 28 views

回答

4

AutoIt可以自動化GUI沒有問題。有兩個編輯框(Edit1Edit2),所以你幾乎可以拿記事本的例子,並改變他們一點點。如果你想在後臺運行一些東西,那麼就像做一個圍繞啓動器的包裝一樣。

Local $sLauncherPath = "C:\Program Files\Google\google_appengine\launcher\GoogleAppEngineLauncher.exe" 

Local $iPid = Run($sLauncherPath) 

Local $hWin 
While ProcessExists($iPid) 
    $hWin = WinWait("Deploy Application to Google", "", 1) 

    If $hWin And WinGetProcess($hWin) = $iPid Then 
     ControlSetText($hWin, "", "Edit1", "[email protected]") 
     ControlSetText($hWin, "", "Edit2", "MyPassword123") 

     ControlClick($hWin, "", "Button2") 

     WinWaitClose($hWin) 
    EndIf 
WEnd 

或者,您可以從命令行部署應用程序。

相關問題