Jump to content

Is something wrong here?


Recommended Posts

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 by gamerman2360
Link to comment
Share on other sites

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 by SumTingWong
Link to comment
Share on other sites

$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

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 by Burrup

qq

Link to comment
Share on other sites

Ya, it was the space doing it. oops :evil:

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 by gamerman2360
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...