N3tz Posted May 1, 2009 Share Posted May 1, 2009 (edited) hi i from argentine google translatethe unattended program In first installation remains perfectBut when I reinstall it, the process stays bsplayer.exe openedI tested with if Winexist () But I did not obtain resultsSome solution for When installs or reinstall, close proccess bsplayer.exeThank you very much!!!!bsplayer 2.27Opt("WinWaitDelay",100)Opt("WinTitleMatchMode",4)Opt("WinDetectHiddenText",1)Opt("MouseCoordMode",0)Run('BSPlayer PRO 2.27.959.exe')WinWait("BS.Player PRO Setup ","Please review the li")If Not WinActive("BS.Player PRO Setup ","Please review the li") Then WinActivate("BS.Player PRO Setup ","Please review the li")WinWaitActive("BS.Player PRO Setup ","Please review the li")Send("{ENTER}")WinWait("BS.Player PRO Setup","Welcome to the BS.Pl")If Not WinActive("BS.Player PRO Setup","Welcome to the BS.Pl") Then WinActivate("BS.Player PRO Setup","Welcome to the BS.Pl")WinWaitActive("BS.Player PRO Setup","Welcome to the BS.Pl")Send("{ENTER}")WinWait("BS.Player PRO Setup ","Choose which feature")If Not WinActive("BS.Player PRO Setup ","Choose which feature") Then WinActivate("BS.Player PRO Setup ","Choose which feature")WinWaitActive("BS.Player PRO Setup ","Choose which feature")Send("{ENTER}")WinWait("BS.Player PRO Setup ","Choose Install Locat")If Not WinActive("BS.Player PRO Setup ","Choose Install Locat") Then WinActivate("BS.Player PRO Setup ","Choose Install Locat")WinWaitActive("BS.Player PRO Setup ","Choose Install Locat")Send("{ENTER}")WinWait("BS.Player PRO Setup","Additional install o")If Not WinActive("BS.Player PRO Setup","Additional install o") Then WinActivate("BS.Player PRO Setup","Additional install o")WinWaitActive("BS.Player PRO Setup","Additional install o")Send("{ENTER}")WinWait("BS.Player PRO Setup","Select default langu")If Not WinActive("BS.Player PRO Setup","Select default langu") Then WinActivate("BS.Player PRO Setup","Select default langu")WinWaitActive("BS.Player PRO Setup","Select default langu")Send("{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{ENTER}")WinWait("BS.Player PRO Setup ","Installation Complet")If Not WinActive("BS.Player PRO Setup ","Installation Complet") Then WinActivate("BS.Player PRO Setup ","Installation Complet")WinWaitActive("BS.Player PRO Setup ","Installation Complet")Send("{ENTER}")WinWait("BS.Player PRO Setup ","Completing the BS.Pl")If Not WinActive("BS.Player PRO Setup ","Completing the BS.Pl") Then WinActivate("BS.Player PRO Setup ","Completing the BS.Pl")WinWaitActive("BS.Player PRO Setup ","Completing the BS.Pl")Send("{ENTER}")If Not WinActive("Información de Registro"," Registro de BSp") Then WinActivate("Información de Registro"," Registro de BSp")WinWaitActive("Información de Registro"," Registro de BSp")Send("{SHIFTDOWN}xxx{SHIFTUP}xxxxx{TAB}xxxxxxxxxx{ENTER}{TAB}{ENTER}")WinWait("Información","Gracias por registra")If Not WinActive("Información","Gracias por registra") Then WinActivate("Información","Gracias por registra")WinWaitActive("Información","Gracias por registra")Send("{ENTER}")EndIf;Cierra AplicacionSleep("200")ProcessWait("bsplayer.exe", 10)ProcessClose("bsplayer.exe")Exit Edited May 1, 2009 by N3tz Link to comment Share on other sites More sharing options...
MHz Posted May 1, 2009 Share Posted May 1, 2009 Hi from Australia I am not sure if I understand correct but perhaps this may help you. It is cleaned up and added some possible improvements.Opt("WinWaitDelay", 100)Opt("WinTitleMatchMode", 4)Opt("WinDetectHiddenText", 1)Opt("MouseCoordMode", 0); close instance of bsplayer.exeIf ProcessExists("bsplayer.exe") Then ProcessClose("bsplayer.exe")EndIf; use quoted double quotes with paths that contain spaces$pid = Run('"BSPlayer PRO 2.27.959.exe"'); if Run() sets @error then exitIf @error Then Exit 1_WinWaitActive("BS.Player PRO Setup", "Please review the li")Send("{ENTER}")_WinWaitActive("BS.Player PRO Setup", "Welcome to the BS.Pl")Send("{ENTER}")_WinWaitActive("BS.Player PRO Setup", "Choose which feature")Send("{ENTER}")_WinWaitActive("BS.Player PRO Setup", "Choose Install Locat")Send("{ENTER}")_WinWaitActive("BS.Player PRO Setup", "Additional install o")Send("{ENTER}")_WinWaitActive("BS.Player PRO Setup", "Select default langu")Send("{DOWN 23}{ENTER}")_WinWaitActive("BS.Player PRO Setup", "Installation Complet")Send("{ENTER}")_WinWaitActive("BS.Player PRO Setup", "Completing the BS.Pl")Send("{ENTER}")_WinWaitActive("Información de Registro", " Registro de BSp")Send("{SHIFTDOWN}xxx{SHIFTUP}xxxxx{TAB}xxxxxxxxxx{ENTER}{TAB}{ENTER}")_WinWaitActive("Información", "Gracias por registra")Send("{ENTER}");Cierra AplicacionProcessWait("bsplayer.exe", 10)ProcessClose("bsplayer.exe")ProcessWaitClose($pid)ExitFunc OnAutoItStart() ; run one script instance only If WinExists(@ScriptName & '_Interpreter') Then Exit AutoItWinSetTitle(@ScriptName & '_Interpreter')EndFuncFunc _WinWaitActive($title, $text = "") ; window wait functions WinWait($title, $text) WinActivate($title, $text) WinWaitActive($title, $text)EndFunc Link to comment Share on other sites More sharing options...
N3tz Posted May 1, 2009 Author Share Posted May 1, 2009 works, thank you very much mhz Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now