Scripting GAE launcher with AutoIT?

后端 未结 1 728
北恋
北恋 2021-01-29 01:41

Can AutoIT script GAE launcher so that I don\'t have to type my password each time I deploy?

相关标签:
1条回答
  • 2021-01-29 02:41

    AutoIt can automate the GUI no problem. There are 2 edit boxes (Edit1 and Edit2) so you can practically take the notepad examples and change them a little bit. If you want something running in the background then do something like this as a wrapper around the launcher.

    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", "MyEmail@Domain.com")
            ControlSetText($hWin, "", "Edit2", "MyPassword123")
    
            ControlClick($hWin, "", "Button2")
    
            WinWaitClose($hWin)
        EndIf
    WEnd
    

    Alternatively, you can deploy the app from the command line.

    0 讨论(0)
提交回复
热议问题