; ; AutoIt Version: 3.0 ; Language: English ; Platform: WinAll ; Author: Oleg Akolupin(oleg@pushok.com) ; ; Script Function: ; Install and register Pushok CVS Proxy version 1.2 ; $LOGIN = "your@login.goes.here" $PASW = "yourpassword" ; Run CVS proxy Install Run("cvsproxy.exe") WinWait("PushOk CVS proxy v","Please read and agree with Pushok Software license") ControlClick ("PushOk CVS proxy v","Please read and agree with Pushok Software license","Button1") WinWait("PushOk CVS proxy v","Choose a directory to install into:") ControlClick ("PushOk CVS proxy v","Choose a directory to install into:","Button1") ProcessWaitClose("cvsproxy.exe") ;Run CVS proxy Registration Run("E:\Program Files\PushOk Software\CVS Proxy\frontend.exe") WinWait("PushOk CVS Proxy properties","File types") $size = WinGetPos("PushOk CVS Proxy properties","File types") MouseClick( "left", $size[0] + 274, $size[1] + 48, 1, 0) WinWait("PushOk CVS Proxy properties","About") MouseClick( "left", $size[0] + 400, $size[1] + 157, 1, 0) ;Browse RegDlg WinWait("PushOk Software - registration - choose registration type","") $size = WinGetPos("PushOk Software - registration - choose registration type","") MouseClick( "left", $size[0] + 350, $size[1] + 340, 1, 0) WinWait("PushOk Software - registration – user registration status","") MouseClick( "left", $size[0] + 350, $size[1] + 340, 1, 0) WinWait("PushOk Software - registration – existing user", "" ) ControlSetText ( "PushOk Software - registration – existing user", "", "Edit1", $LOGIN ) ControlSetText ( "PushOk Software - registration – existing user", "", "Edit2", $PASW ) MouseClick( "left", $size[0] + 350, $size[1] + 340, 1, 0) WinWait("PushOk Software - registration – select available license", "" ) MouseClick( "left", $size[0] + 350, $size[1] + 340, 1, 0) WinWait("PushOk Software - registration – success", "" ) MouseClick( "left", $size[0] + 350, $size[1] + 340, 1, 0) WinWait("PushOk CVS Proxy properties","About") ControlClick ("PushOk CVS Proxy properties", "About", "Button5") ; Finished!