Jump to content

. A3X's


 Share

Recommended Posts

Example:

If you have a project that needs to be using different parts in separate exe's. With a3x you only need to make the main code a exe, and the rest can be a3x's, that are started from within the main exe. (using the interpreter from/in the main exe to start them.)

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
Share on other sites

They are nice for scripts that need regular updates. You can me an exe that runs an A3X that checks for updates and at the same time runs an A3X containing the actual script.

The updates download faster due to the smaller filesize and the A3X files can be replaced while they are running, after which you can restart them, meaning the update script can easily update itsself.

Link to comment
Share on other sites

So they act as a 'link' between two or more scripts (but one needs to be compiled)'?

Is this right?

That's not how I would describe it.

Basically each AutoIt exe contains out of these pieces:

* the AutoIt interpeter.

* the script made by the author.

* added resources like icons, if any.

* Others I don't know about?

An a3x file contains just the part that has the script. So to run it will have to find an interpeter somewhere. Luckily each AutoIt exe has one of these, so you can use one AutoIt exe to run many a3x files.

how do you run the .a3x file from the compiled script

You can run an a3x file through another AutoIt exe, by passing the command line switch: /AutoIt3ExecuteScript file.a3x to the exe.

So if you would Build an exe form the following script:

Run(@ScriptFullPath & " /AutoIt3ExecuteScript file.a3x")
and run it, it would load, run itsself again, but with the command line parameter, then exit.

The second instance of the exe. (the one that got passed the parameter) would attempt to run file.a3x and continue running untill file.a3x exists.

As you can see the exe is extremely simple. Usually not more then one, or two lines of code, so the chances it will need regular updates are small. (how many errors can be in one line right?)

So even if the script "file.a3x" needs to be updated constantly, the user will only have to update the exe when the interpeter needs updating. (read, when the author updates his AutoIt installation to a newer version)

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