Jump to content

f-secure autoit help


lilweirddude

Recommended Posts

need some help with the autoit script i wrote for f-secure 5.43 for workstations

Run ("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}")
EXIT

i know its nothing fancy but the problem i'm having is with the ending

the "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 update

i know there's probably some command to get around this but im an autoit newbie

Link to comment
Share on other sites


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}")

EXIT

Now 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"

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...