Scripting GAE launcher with AutoIT?

蓝咒 提交于 2019-12-02 16:57:09

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/17527767/scripting-gae-launcher-with-autoit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!