lionheart85 Posted November 1, 2007 Posted November 1, 2007 hi to all Autoit community.Im a newbie learning n trying Autoit.I'm am told to complete a task which is to uninstall old version of quicktime and install a new version.So far,i've searched n learned from others topics n posts.finally i've produced my own script.But being newbie obviously errors and problems not far behind.This is my script :-UNINSTALL OLD QUICKTIMECODERun("MsiExec.exe /I{quicktime reg string}")WinWaitActive("QuickTime for Windows", "&Remove")Send("!r")WinWaitActive("QuickTime for Windows", "&Yes")Send("{ENTER}")WinWaitActive("QuickTime for Windows", "&Finish")Send("{ENTER}")WinWaitActive("QuickTime for Windows", "&No")Send("{ENTER}")ExitINSTALL NEW VERSION QUICKTIMECODERun("QuickTimeInstaller72.exe")WinWaitActive("QuickTime for Windows", "&Next")Send("!n")WinWaitActive("QuickTime for Windows", "&Yes")Send("!y")WinWaitActive("QuickTime for Windows", "&Install")Send("{ENTER}")WinWaitActive("QuickTime for Windows", "&Finish")Send("{ENTER}")WinClose("QuickTime for Windows", "")ExitNow,the problem im facing is that after finish installing quicktime,the last window asking for Go Pro.I cant seem to close it with Autoit.Gotta close it manually.Is this code wrong?WinClose("QuickTime for Windows", "")And is there anyway to exit Autoit script after finish executing?Please need help here.Thank you
Generator Posted November 1, 2007 Posted November 1, 2007 You can use WinClose("","") for current active window, or use ProcessKill("") AutoIt script auto exit after executing(no more command so it exits)
lionheart85 Posted November 1, 2007 Author Posted November 1, 2007 You can use WinClose("","") for current active window, or use ProcessKill("")AutoIt script auto exit after executing(no more command so it exits)i've tried it juz now and still its not working.The last window saying Go Pro Now is not closing at all unless i manually click.
Danny35d Posted November 1, 2007 Posted November 1, 2007 Did you try to use the install silent switches?RunWait("QuickTimeInstaller72.exe /qn", @TempDir, @SW_SHOW) AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
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