Jump to content

beta compile problem


Recommended Posts

I took this example straight out of the AutoIt Help File and for some reason, using SciTE4AutoIt3 'beta run' works fine (I get a message box with the number of bytes read) but the 'beta compile' function doesn't (comes up with AutoIt Error Line -1: Error: Unknown function name). I'm using beta v3.3.1.1 and the latest SciTE4AutoIt3 (which has been configured to use the beta). So what am I missing? Why doesn't the compiled version run?:

Local $hDownload = InetGet("http://www.autoitscript.com/autoit3/files/beta/update.dat", @TempDir & "\update.dat", 1, 1)
Do
    Sleep(250)
Until InetGetInfo($hDownload, 2)    ; Check if the download is complete.
Local $nBytes = InetGetInfo($hDownload, 0)
InetClose($hDownload)   ; Close the handle to release resourcs.
MsgBox(0, "", "Bytes read: " & $nBytes)
Link to comment
Share on other sites

I take it by the lack of replies, it works fine for everyone else and it is just my system that's playing up?

Edit: I should've said that it compiles OK, but the resultant EXE comes up with the error I described above (like it is being compiled with the production version of AutoIt).

Edited by PartyPooper
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...