brusuillis Posted May 31, 2006 Share Posted May 31, 2006 I make a simple script: $file = "ftp://test:test@server/update/version.txt" $size = InetGetSize($file) InetGet($file,"update\version.txt",1,1) ProgressOn("Update", "Download in progress...", "0%",-1,-1,18) WinActivate("Update") While @InetGetActive sleep(100) $progress = round(@InetGetBytesRead * 100 / $size) ProgressSet( $progress, $progress & "%") Wend ProgressSet(100 , "100%", "Download complete") sleep(500) ProgressOff() Exit I call this script from another app. All works fine but after the end of the script, the autoit3.exe process (I see it in task manager) remain active for some minutes and the calling app remains waiting for all this time. What is the problem? Link to comment Share on other sites More sharing options...
bucky002 Posted May 31, 2006 Share Posted May 31, 2006 (edited) Couldn't you just put ProcessClose at the end of your script? I.E. ProcessClose("autoit3.exe") Edited May 31, 2006 by bucky002 Link to comment Share on other sites More sharing options...
brusuillis Posted May 31, 2006 Author Share Posted May 31, 2006 Couldn't you just put ProcessClose at the end of your script? I.E. ProcessClose("autoit3.exe") Yes, this work, I had tried it this morning. I can add also AutoItSetOption("TrayIconHide",1) so the tray icon disappear but I thinks this is a workaround not the solution I think. I'm trying to find the reason of this problem. Thank you! Link to comment Share on other sites More sharing options...
Rick Posted May 31, 2006 Share Posted May 31, 2006 (edited) Yay someone else has the same problem I've placed many posts regarding this and told the AutoiIt Team are looking into it. Edited May 31, 2006 by Rick Who needs puzzles when we have AutoIt!! Link to comment Share on other sites More sharing options...
Developers Jos Posted May 31, 2006 Developers Share Posted May 31, 2006 @brusuillis, could you give us all details of your setup, version Autoit3/WinOS and FTP server you connect to? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
w0uter Posted May 31, 2006 Share Posted May 31, 2006 does it actually download ? if not you could try ftp.au3 My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
brusuillis Posted June 1, 2006 Author Share Posted June 1, 2006 @brusuillis,could you give us all details of your setup, version Autoit3/WinOS and FTP server you connect to?AutoIT 3.1.1Windows XP Pro SP2FileZilla Server 0.9.18I try also old version of AutoIT and FileZilla Server.I try from a lot of PC connected directly to the FTP server and from Internet but all have the problem. Link to comment Share on other sites More sharing options...
brusuillis Posted June 1, 2006 Author Share Posted June 1, 2006 does it actually download ? if not you could try ftp.au3Yes it download. The script works all the time but at the end the process remain active for minutes. Link to comment Share on other sites More sharing options...
Rick Posted June 1, 2006 Share Posted June 1, 2006 Yes it download. The script works all the time but at the end the process remain active for minutes.it awaits ftp timeout which of course is wrong, JdeB is currently working on the cause, I'm sure he'll let us know soon. Who needs puzzles when we have AutoIt!! Link to comment Share on other sites More sharing options...
Uten Posted June 1, 2006 Share Posted June 1, 2006 While JdeB is woorking on it, what will a InetGet("abort") at the end of the script do? Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Rick Posted June 1, 2006 Share Posted June 1, 2006 (edited) While JdeB is woorking on it, what will a InetGet("abort") at the end of the script do? Hang, until ftp default timeout (altho it doesnt seem to apply to everyone for some reason) Edited June 1, 2006 by Rick Who needs puzzles when we have AutoIt!! Link to comment Share on other sites More sharing options...
Developers Jos Posted June 1, 2006 Developers Share Posted June 1, 2006 AutoIT 3.1.1Windows XP Pro SP2FileZilla Server 0.9.18I try also old version of AutoIT and FileZilla Server.I try from a lot of PC connected directly to the FTP server and from Internet but all have the problem.Just some thoughts/facts:- So it looks like one of the common things in the setup is that you and Rick both use a filezilla server.- When accessing Ricks server from the Internet, we don't have any problems but you state you do.- You also state that using W0uters FTP.AU3 script it also hangs.... right ?There is currently not much we can work on until we have found a way to replicate the issue. only then we can do some debugging. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Uten Posted June 1, 2006 Share Posted June 1, 2006 I can observe this behavior also. Server: BRS WebWeaver www.brswebweaver.comConsoleWrite("@AutoItVersion:=" & @AutoItVersion & @LF) ConsoleWrite("@OSTYPE:=" & @OSTYPE & @LF) ConsoleWrite("@OSVersion:=" & @OSVersion & @LF) ConsoleWrite("@OSServicePack:=" & @OSServicePack & @LF) $time = TimerInit() $file = "ftp://localhost/test-slettes.pdf" $size = InetGetSize($file) InetGet($file,"test-slettes.pdf",1,1) ConsoleWrite("@error:=" & @error & @lf) ProgressOn("Update", "Download in progress...", "0%",-1,-1,18) WinActivate("Update") While @InetGetActive sleep(100) $progress = round(@InetGetBytesRead * 100 / $size) ProgressSet( $progress, $progress & "%") Wend ConsoleWrite("@error:=" & @error & @lf) ProgressSet(100 , "100%", "Download complete") sleep(500) ProgressOff() ConsoleWrite("DONE: TimerDiff($time):=" & TimerDiff($time) & @lf) ExitOutput running from SciTe:>"\\shuttle\tools\portableaps\autoit3beta\autoit3.exe" /ErrorStdOut "Z:\portableaps\Autoit3beta\Code\au3\test\testInetGet.au3" @AutoItVersion:=3.1.1.124 @OSTYPE:=WIN32_NT @OSVersion:=WIN_2000 @OSServicePack:=Service Pack 4 @error:=0 @error:=0 DONE: TimerDiff($time):=1232.34964220313 >Exit code: 0 Time: 62.704The download takes like 1.2sek but SciTe gets a timestamp from Autoit3.exe after 60+sek. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Rick Posted June 1, 2006 Share Posted June 1, 2006 I dont agree that its fileZilla related problem as both JdeB & Valik have been able to access files and disconnect imediately, so it has to be something else. Who needs puzzles when we have AutoIt!! Link to comment Share on other sites More sharing options...
Developers Jos Posted June 1, 2006 Developers Share Posted June 1, 2006 I dont agree that its fileZilla related problem as both JdeB & Valik have been able to access files and disconnect imediately, so it has to be something else.Don't think I said that....Just trying to do fact finding and narrow things down were possible.Just did install the FileZilla server on my own PC and tested without having any problems....... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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