AutoIT 能否编写 GAE 启动程序脚本,以便我无需在每次部署时输入密码?
AutoIt 可以自动化 GUI 没问题。有2个编辑框(Edit1
and 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] /cdn-cgi/l/email-protection")
ControlSetText($hWin, "", "Edit2", "MyPassword123")
ControlClick($hWin, "", "Button2")
WinWaitClose($hWin)
EndIf
WEnd
或者,您可以从命令行部署应用程序。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)