lilweirddude Posted January 18, 2005 Posted January 18, 2005 need some help with the autoit script i wrote for f-secure 5.43 for workstationsRun ("setup.exe")Opt("MouseCoordMode",0)WinActivate("Choose Setup Language")WinWaitActive("Choose Setup Language")Send("{ENTER}")WinActivate("Welcome to F-Secure Setup")WinWaitActive("Welcome to F-Secure Setup")Send("{ENTER}")WinActivate("Software Licence Agreement","")WinWaitActive("Software Licence Agreement","")Send("{SPACE}{TAB}{TAB}{ENTER}")WinActivate("F-Secure Setup","")WinWaitActive("F-Secure Setup","")Send("XXXX")sleep(500)Send("XXXX")sleep(500)Send("XXXX")sleep(500)Send("XXXX")sleep(500)Send("XXXX")Send("{ENTER}")WinActivate("F-Secure Anti-Virus 5.43 Setup","")WinWaitActive("F-Secure Anti-Virus 5.43 Setup","")Send("{ENTER}")WinActivate("F-Secure Setup")WinWaitActive("F-Secure Setup")Send("{ENTER}")WinActivate("F-Secure Management Agent")WinWaitActive("F-Secure Management Agent")Send("{ENTER}")WinActivate("F-Secure Setup")WinWaitActive("F-Secure Setup")Send("{ENTER}")WinActivate("F-Secure Anti-Virus Update","")WinWaitActive("F-Secure Anti-Virus Update","")Send("{TAB}{ENTER}")WinActivate("F-Secure Setup","")WinWaitActive("F-Secure Setup","")Send("{TAB}")Send("{Space}")Send("{ENTER}")EXITi know its nothing fancy but the problem i'm having is with the endingthe "f-secure setup" window will pop up saying that it's done with installation, then, shortly after the "F-Secure Anti-Virus Update" window will pop up asking if i wish to updatei know there's probably some command to get around this but im an autoit newbie
Nologic Posted January 19, 2005 Posted January 19, 2005 Well the base script could be cleaned up a bit....would help if there was some commented labeling as well.Run ("setup.exe")WinWaitActive("Choose Setup Language")Send("{ENTER}")WinWaitActive("Welcome to F-Secure Setup")Send("{ENTER}")WinWaitActive("Software Licence Agreement")Send("{SPACE}{TAB 2}{ENTER}")WinWaitActive("F-Secure Setup")Send("XXXXXXXXXXXXXXXXXXXX")Send("{ENTER}")WinWaitActive("F-Secure Anti-Virus 5.43 Setup")Send("{ENTER}")WinWaitActive("F-Secure Setup")Send("{ENTER}")WinWaitActive("F-Secure Management Agent")Send("{ENTER}")WinWaitActive("F-Secure Setup")Send("{ENTER}")WinWaitActive("F-Secure Anti-Virus Update")Send("{TAB}{ENTER}")WinWaitActive("F-Secure Setup")Send("{TAB}{Space}{ENTER}")EXITNow if your just wanting to close the last two windows then you can probably just get away with the following code:WinWaitActive("F-Secure Anti-Virus Update")WinClose("F-Secure Anti-Virus Update")WinWaitActive("F-Secure Setup")WinClose("F-Secure Setup")Also try to use AutoIt Spy to get the control ID's then make use of "ControlClick" & "ControlSetText" instead of "Send"
lilweirddude Posted January 19, 2005 Author Posted January 19, 2005 WinWaitActive("F-Secure Anti-Virus Update")WinClose("F-Secure Anti-Virus Update")WinWaitActive("F-Secure Setup")WinClose("F-Secure Setup")doesn't quite work for me
Nologic Posted January 19, 2005 Posted January 19, 2005 Maybe just close the executable thats running.ProcessClose ( "process" )like to close notepad one would putProcessClose ( "notepad.exe" )
lilweirddude Posted January 19, 2005 Author Posted January 19, 2005 i'll try, that was gonna be my second approach if i couldn't get autoit to worknow to find the precess name...
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