clockworkcopmputer Posted October 23, 2006 Share Posted October 23, 2006 This script opens Filezilla and uploads a file to an FTP site, then when succesful, close FilezillaIf however the upload is unsuccesful, the window would stay open and the user could have access to the FTP siteIs there a way of using winwaitactive with a choice of texts so that if either of the phrases 'upload succesful' or 'upload unsuccesful' is seen the following line (winclose) is activated?; Run FileZilla with the command line option identifying the target file and FTP locationRun ('"C:\Program Files\FileZilla\FileZilla.exe" -u "c:\zilla1.txt" ftp://xxx.net/zilla/ -t zilla1.txt'); Wait until the appropriate feedback is receivedWinWaitActive("FileZilla version 2.2.28", "Status: Upload successful"); Now close FilezillaWinClose("FileZilla version 2.2.28") Link to comment Share on other sites More sharing options...
PaulIA Posted October 23, 2006 Share Posted October 23, 2006 while 1 if WinActive("FileZilla version 2.2.28", "Status: Upload successful" ) then ExitLoop if WinActive("FileZilla version 2.2.28", "Status: Upload unsuccessful") then ExitLoop Sleep(100) wend Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
clockworkcopmputer Posted October 23, 2006 Author Share Posted October 23, 2006 Thanks - its obvious when you see it written down! Link to comment Share on other sites More sharing options...
PaulIA Posted October 23, 2006 Share Posted October 23, 2006 No problem. We've all been there, done that Auto3Lib: A library of over 1200 functions for AutoIt 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