Sign in to follow this  
Followers 0
psychostrat

InetGet in exe

7 posts in this topic

When I compile this to InetGet.exe it doesn't download the files when InetGet.exe is used, but works while working in autoit? My firewall and virus detection is turned off, so it must be something simple I'm missing...

#include <INet.au3>

InetGet("http://www.mozilla.org", "C:\foo.html")
InetGet("http://www.autoitscript.com", "C:\mydownload.htm", 1)
InetGet("ftp://ftp.mozilla.org/pub/mozilla.org/README", "README.txt", 1)


; Advanced example - downloading in the background
InetGet("http://www.nowhere.com/somelargefile.exe", "test.exe", 1, 1)

While @InetGetActive
  TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
  Sleep(250)
Wend

MsgBox(0, "Bytes read", @InetGetBytesRead)

Share this post


Link to post
Share on other sites



Bump...

Just need to know why the example code doesn't download the files like it should when compiled to an .exe

Maybe someone has a suggestion on this or possible reasons...

thanks....

Share this post


Link to post
Share on other sites

Works for me. What version of AutoIt are you using?

Share this post


Link to post
Share on other sites

It's v3.2.6.0

It works for me when in audoit, but when I compile to .exe and run it... it runs but doesn't download the files.

Share this post


Link to post
Share on other sites

Thats a really old version, they upgrading to the new version(s) of AutoIt.

Share this post


Link to post
Share on other sites

I updated to v3.2.12.1 and still have the same problem, I'm using XP as well.... I'm thinking maybe Onecare has something running in the background or it could be my Netgear router, even though I turned off all the firewalls, I'm puzzled.... Anyway this is a bummer, hopefully I'll find a fix for it.

Share this post


Link to post
Share on other sites

It might be the autoit compiler settings. Make sure that you compile the script as Unicode and not ANSI or 64 (my pc is XP Home). My Autoit version is 3.2.10.0

Hope it helps.


Trust me to make SkyNet with AutoIt...

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