Starfighter Posted July 5, 2007 Share Posted July 5, 2007 Hello Programmers, I have a problem with the InetGetSize function: $FileInternetMain="http://imdb.com/" $SizeOfFileInternetMain=InetGetSize($FileInternetMain) MsgBox(0,"SizeOfFileInternetMain","*" & $SizeOfFileInternetMain & "*") The size is always 0 bytes! It seems this code doesn't work. But this following code work fine: $FileInternetMain="http://i.imdb.com/images/nb15/logo.gif" $SizeOfFileInternetMain=InetGetSize($FileInternetMain) MsgBox(0,"SizeOfFileInternetMain","*" & $SizeOfFileInternetMain & "*") The size is 5596 bytes. How can I determine the size from "http://imdb.com/" correctly? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 5, 2007 Moderators Share Posted July 5, 2007 Returns the size (in bytes) of a file located on the internet.I don't think it says anything about "directories" there. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
tAKTelapis Posted July 5, 2007 Share Posted July 5, 2007 Yeah, the problem is you have given it a directory. Whereas in the second example it has been given a file. You could perhaps try an InetGetSource() and save the source.. but that is not going to get you the sizes of all images etc. Just the size of the html code that is produced. 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