Jump to content

Recommended Posts

Posted (edited)

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
  • Developers
Posted (edited)

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

Posted

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

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

When I compiled it, it returns ver = 0.

Posted

Make sure you compile it with same version so you don't write a script for 3.2.12.1 and compile with Beta or vice versa.

Posted

Okay, no problem anymore. I played around with the settings in the compile dialog. And now it works fine! But before I never played around with the settings. Oh, I am so happy! Thx for your help^^

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
×
×
  • Create New...