使用AutoIT脚本编写GAE启动程序? [英] Scripting GAE launcher with AutoIT?
本文介绍了使用AutoIT脚本编写GAE启动程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以AutoIT脚本GAE启动器,这样我就不必在每次部署时输入我的密码? AutoIt 可以使GUI自动化没有问题。有两个编辑框( Edit1
和 Edit2
),所以你几乎可以把记事本的例子改变一点点。如果你想要在后台运行一些东西,那么在启动器中做一些类似的事情。
Local $ sLauncherPath =C :\程序文件\Google\google_appengine\launcher\GoogleAppEngineLauncher.exe
本地$ iPid =运行($ sLauncherPath)
本地$ hWin
虽然ProcessExists($ iPid)
$ hWin = WinWait(将应用程序部署到Google,,1)
如果$ hWin和WinGetProcess($ hWin)= $ iPid Then
ControlSetText($ hWin,,Edit2,MyPassword123)
$ b ControlSetText($ hWin,,Edit1,MyEmail@Domain.com $ b ControlClick($ hWin,,Button2)
WinWaitClose($ hWin)
EndIf
Wend
或者,您可以从命令行部署应用程序。
Can AutoIT script GAE launcher so that I don't have to type my password each time I deploy?
解决方案
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.
这篇关于使用AutoIT脚本编写GAE启动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文