Jump to content

Au3 script works perfect but not the compiled script


 Share

Recommended Posts

I wrote a script and saved it like it's normal as an au3 file. Then I ran it as beta. Everything works perfect. But when I compile the script to an exe file it works not how it should work. Some functions won't work.

For example:

I'm going to read out an html file with a text "1.0.1". In the script is a text "1.0". Now it should compare if the both are the same or not. If not, it should show me it in a MsgBox.

But now when it's the same:

IN AU3 it prints out: "No updates available!"

IN EXE it prints out: "Version 0 is available!"

Then there is a second error. But why the compiled script isn't the same as the au3 script?

$ie=_IECreate("http://www.tobiserver.kilu.de/SWAP/version.htm",0,0)
   $ieread=_IEBodyReadText($ie)
   If $ieread = "1.0.1" Then
       MsgBox(0,"SoundWave Audio Player","Keine Updates verfügbar!")
   Else
       MsgBox(0,"SoundWave Audio Player","Version " & $ieread & " steht zum Download bereit" & @CRLF & @CRLF & "http://www.tobiserver.kilu.de/soundwave.htm")
    EndIf
Edited by tobi2006
Link to comment
Share on other sites

  • Developers

It works the same compiled as ran with F5 in SciTE for me.

Both times the returned ver = 1.0 and the popup shows up stating there is an update.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...