本文介绍了使用 AutoIT 编写 GAE 启动器脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
AutoIT 是否可以编写 GAE 启动器脚本,以便我每次部署时都不必输入密码?
Can AutoIT script GAE launcher so that I don't have to type my password each time I deploy?
推荐答案
AutoIt 可以自动化 GUI 没问题.有 2 个编辑框(Edit1
和 Edit2
),因此您实际上可以使用记事本示例并对其进行一些更改.如果你想在后台运行一些东西,那么做这样的事情作为启动器的包装器.
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 FilesGooglegoogle_appenginelauncherGoogleAppEngineLauncher.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
或者,您可以从命令行部署应用程序.
Alternatively, you can deploy the app from the command line.
这篇关于使用 AutoIT 编写 GAE 启动器脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!