0
是否可以自動啓動腳本GAE啓動器,以便每次部署時都不必輸入密碼?使用AutoIT腳本編寫GAE啓動程序?
是否可以自動啓動腳本GAE啓動器,以便每次部署時都不必輸入密碼?使用AutoIT腳本編寫GAE啓動程序?
AutoIt可以自動化GUI沒有問題。有兩個編輯框(Edit1
和Edit2
),所以你幾乎可以拿記事本的例子,並改變他們一點點。如果你想在後臺運行一些東西,那麼就像做一個圍繞啓動器的包裝一樣。
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
或者,您可以從命令行部署應用程序。