Sign in to follow this  
Followers 0
gamerman2360

Is something wrong here?

8 posts in this topic

#1 ·  Posted (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 by gamerman2360

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by SumTingWong

Share this post


Link to post
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())

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Burrup

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

You're confusing me now? Which code example are you referring to?


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

There's always similar things in all languages...I always forget that [in]famous ';' in php :)


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
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)

Share this post


Link to post
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
Sign in to follow this  
Followers 0