gamerman2360 Posted June 20, 2005 Share Posted June 20, 2005 (edited) InetGet dosnt InetGet ;$image = URL ex:"http://www.webpage.com/image.png" ;$file = Name of file ex:"image.png" ;$filename = Name of file (no extention [.png]) ex:"image" InetGet($image, @MyDocumentsDir & "\My Pictures\" & $filename & " \" & $file) Edited June 20, 2005 by gamerman2360 Link to comment Share on other sites More sharing options...
SumTingWong Posted June 20, 2005 Share Posted June 20, 2005 (edited) InetGet dosnt InetGet;$image = URL ex:"http://www.webpage.com/image.png" ;$file = Name of file ex:"image.png" ;$filename = Name of file (no extention [.png]) ex:"image" InetGet($image, @MyDocumentsDir & "\My Pictures\" & $filename & " \" & $file)<{POST_SNAPBACK}>Is $filename a valid directory? According for your example, the InetGet call would be:InetGet($image, @MyDocumentsDir & "\My Pictures\image \image.png")As you can see, $filename needs to be a valid dir and you also need to remove the extra space before your last backslash.I suggest you download and use Scite as your code editor as it would help you to troubleshoot these coding errors. Edited June 20, 2005 by SumTingWong Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted June 20, 2005 Share Posted June 20, 2005 $image = "http://www.autoitscript.com/forum/style_images/autoit/logo4.gif" ;InetGet("http://www.autoitscript.com/forum/style_images/autoit/logo4.gif", @DesktopDir & "\test.gif") InetGet($image, @MyDocumentsDir & "\My Pictures\test.gif") I'm wondering about that $filename variable you're using...try just removing it and use InetGet($image, @MyDocumentsDir & "\My Pictures\" & $file) Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
buzz44 Posted June 20, 2005 Share Posted June 20, 2005 (edited) InetGet($image, @MyDocumentsDir & "\My Pictures\imageimage.png)Is that correct? That is what your example will come out as.Edit: @MSLx Fanboy, at first didn't realise you were thinking same as me .Edit2: And you aswell SumTingWong lol. @MSLx Fanboy, when I answered I didn't know you and SumTingWong had also posted, I'm referring to the original example by gamerman2360 as you are. Edited June 20, 2005 by Burrup qq Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted June 20, 2005 Share Posted June 20, 2005 You're confusing me now? Which code example are you referring to? Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
gamerman2360 Posted June 20, 2005 Author Share Posted June 20, 2005 (edited) Ya, it was the space doing it. oops I had DirCreate before this script and I needed it to be in a folder because the url was going to be added in a txt file Ill look into the Scite thing Thanks to all who helped, wow, I think this is the first problem I have had where it was solved easily... I dont know if that is a good thing or a bad thing because putting spaces in random places is never a good thing Edited June 20, 2005 by gamerman2360 Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted June 20, 2005 Share Posted June 20, 2005 There's always similar things in all languages...I always forget that [in]famous ';' in php Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
JSThePatriot Posted June 20, 2005 Share Posted June 20, 2005 There's always similar things in all languages...I always forget that [in]famous ';' in php <{POST_SNAPBACK}>I do that sometimes in C++ but I am slowly getting the hang of it.JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) 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