anchorsaway Posted November 30, 2006 Share Posted November 30, 2006 I am very new to autoit and need some help. I am executing WinZip to extract a file. It takes about 3 minutes to extract the file. How do I figure out when the file is done extracting to close WinZip?Code sampleFunc _ExtractWinZipFile($sFileName) Run("C:\Program Files\WinZip\WINZIP32.EXE")WinWaitActive("WinZip");Close Tip of the day if it is openControlClick("WinZip Tip of the Day", "Did you know...", 2 );Open the ArchiveSend("!f")Send("{DOWN}")Send("{ENTER}");Types the file name you want to unzipsend("C:\oracle client\" & $sFileName)Send("!O");Extracts the Files to the specified directoryWinWaitActive("WinZip - " & $sFileName)Send("+e")WinWaitActive("Extract - C:\oracle client\" & $sFileName)Send("C:\oracle client")WinWaitActive("Extract - C:\oracle client\" & $sFileName)ControlClick("Extract - C:\oracle client\" & $sFileName, "E&xtract to:", 1 )Need help here:if i try to close winzip now the command will execute before the extraction is finishedEndFunc Link to comment Share on other sites More sharing options...
anchorsaway Posted November 30, 2006 Author Share Posted November 30, 2006 Never mind - i figured it out. Link to comment Share on other sites More sharing options...
mikehunt114 Posted November 30, 2006 Share Posted November 30, 2006 anchorsaway: 1 Forums: 0 IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
LxP Posted December 1, 2006 Share Posted December 1, 2006 (edited) That was basically a really polite way of saying 'please share your solution with the rest of us', anchorsaway! :">Edit: And welcome to the forums. Edited December 1, 2006 by LxP Link to comment Share on other sites More sharing options...
anchorsaway Posted December 4, 2006 Author Share Posted December 4, 2006 Just added a loop $x = FileExists("C:\oracle client\client\welcome.html") While $x = 0 Sleep(5000) $x = FileExists("C:\oracle client\client\welcome.html") WEnd WinClose("WinZip - "& $sFileName, "") 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