1
AutoIT를 스크립팅하여 파일에서 사용자 이름과 암호를 읽으면 배포가 어려워집니다. 그렇지 않으면 배포 할 때마다 사용자 이름과 암호를 제공해야하기 때문입니다. 나는 AutoIT를 가진 초보자이고 나는 단지 RTFM이다. 다음은 내가 가지고 있고 내가 초보자이기 때문에 내가 틀린 일을 찾을 수 있다고 확신하지만, 다음은 나를 위해 일하고있다. 이 단지 내 2 AutoIT 반입 프로젝트이기 때문에AutoIT를 Scirpting하여 파일에서 사용자 이름과 암호를 읽습니다.
나를 위해 작동하는 것 같다Local $sLauncherPath = "C:\Program Files (x86)\Google\google_appengine\launcher\GoogleAppEngineLauncher.exe"
Local $iPid = Run($sLauncherPath)
Local $hWin
While ProcessExists($iPid)
$hWin = WinWait("Deploy Application to Google", "", 1)
Local $file = FileOpen("C:\Program Files (x86)\Google\google_appengine\launcher\settings.dat", 0)
Local $line = FileReadLine($file, 1)
Local $line2 = FileReadLine($file, 2)
If $hWin And WinGetProcess($hWin) = $iPid Then
ControlSetText($hWin, "", "Edit1", $line)
ControlSetText($hWin, "", "Edit2", $line2)
ControlClick($hWin, "", "Button2")
WinWaitClose($hWin)
EndIf
WEnd
, 당신은 가능한 개선 제안을 할 수있다 : 더 나은 방법으로 이상이 전에이 문제의 대답했다?
체크 아웃 http://codereview.stackexchange.com/ – banging