phatzilla Posted July 8, 2007 Share Posted July 8, 2007 (edited) I kinda forgot what my 2nd question was when i made my first thread hence me making a second thread.I am currently using the following code to download / run an image file i have hostedInetGet("www.imageshack.us/xxxx.jpg", C:"\xxxx.jpg", 1, 1)sleep(5000)run (c:\xxxx.jpg) [For example]Now the problem is that sometimes the jpg file will tkae longer than 5 seconds to download therefore it'll error out and wont let me open it. My question is this : IS there a specific sleep command which WAITS for the exact amount of time it takes for the file to download, and THEN executes it, removing any possibilities of an error.Thanks. And sorry for the second thread. Edited July 8, 2007 by phatzilla Link to comment Share on other sites More sharing options...
Valuater Posted July 8, 2007 Share Posted July 8, 2007 InetGet ( "URL" [,"filename" [, reload [, background]]] ) Parameters URL URL of the file to download. See remarks below. Can be "abort". filename [optional]Local filename to download to. reload [optional]0 = (default) Get the file from local cache if available1 = Forces a reload from the remote site background [optional]0 = (default) Wait until the download is complete before continuing.1 = return immediately and download in the background (see remarks).8) Link to comment Share on other sites More sharing options...
phatzilla Posted July 8, 2007 Author Share Posted July 8, 2007 Wow im an idiot; thanks for the help. 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