Joon Posted December 8, 2006 Posted December 8, 2006 Following is all I have in my code and I get different results between Beta and regular version of AutoIt. Somehow, my script takes a minute to complete. It should be done in few seconds. ConsoleWrite("Started at " & @HOUR & ":" & @MIN & ":" & @SEC & @LF) InetGet("http://xxx.com/daily/hidden.asp", @SystemDir & "\foo.txt", 1, 0) ConsoleWrite("Loaded at " & @HOUR & ":" & @MIN & ":" & @SEC & @LF) And here Console output for two version. >Running:(3.2.1.13):C:\Program Files\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\joon\Desktop\test.au3" Started at 10:26:48 Loaded at 10:27:49 +>AutoIT3.exe ended.rc:0 >Exit code: 0 Time: 62.204 >Running:(3.2.0.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\joon\Desktop\test.au3" Started at 10:28:11 Loaded at 10:28:11 +>AutoIT3.exe ended.rc:0 >Exit code: 0 Time: 62.296 On regular AutoIt, it grab the file in less than a second, but not releasing the process for a minute. That's same with putting Exit at the forth line. Any idea?
mikehunt114 Posted December 8, 2006 Posted December 8, 2006 Am I missing something? For the first run, how can the difference in your time outputs be greater than the total time the script ran? 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]
Uten Posted December 8, 2006 Posted December 8, 2006 what happens when you try it against google and not the obscured url your using? This is me (beta 3.2.0.13) Started at 15:50:00 Loaded at 15:50:02 +>AutoIT3.exe ended.rc:0 >Exit code: 0 Time: 3.117 My guerss is that the server does take it's time to end the conversation. 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
Uten Posted December 8, 2006 Posted December 8, 2006 Am I missing something? For the first run, how can the difference in your time outputs be greater than the total time the script ran? The script is running for 62 seconds. How did 26:46->27:47~62 seconds ? 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
Joon Posted December 8, 2006 Author Posted December 8, 2006 @mikehunt114 I don't know, but that's what I got from SciTe Console. @Uten running it against google.com seems normal. Question is with regular AutoIt, why did it hit the second ConsoleWrite, when it not done? Could be this in the webpage cause it? <META HTTP-EQUIV="Refresh" Content="30; URL=expiredpage.htm">
Joon Posted December 8, 2006 Author Posted December 8, 2006 (edited) OK, that was problem. How do I fix it? <HTML> <META HTTP-EQUIV="Refresh" Content="30; URL=expiredpage.htm"> <BODY> <CENTER>Support Services </CENTER> </BODY> </HTML> above HTML file cause the problem. Thank you Edited December 8, 2006 by Joon
mikehunt114 Posted December 8, 2006 Posted December 8, 2006 The script is running for 62 seconds. How did 26:46->27:47~62 seconds ?Oi...I thought it was 62 ms....I need coffee. 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]
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