Jump to content

Imbedded AutoIt executable


 Share

Recommended Posts

Hello peoples,

I just have a little query (not queerie)!

I believe I heard that every AutoIt compiled script (.exe), has the AutoIt executable imbedded in it? If this is true, is it therefor possible to call this to run an external .au3 file? How if so?

In other words run a .au3 script on a machine where AutoIt isn't installed?

The scenario would be useful, where you create a temporary script file (.au3) to run, then delete it afterwards.

How I personally would like to use this kind of ability, would be where you store the content of a possible file in an .ini file as a variable, which can be updated/modified as the user requires.

An executable being a finalized form does not have this ability to change - only mildly through variables, that while maybe stored in an .ini file, cannot drastically change the exe's complete behaviour. ;)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

/AutoIt3ExevuteScript switch allows a compiled script to execute a au3 or a3x file directly.

Thanks Captain!

And thanks for the .mht advice & code, though I haven't yet tested it ... been busy busy! ;)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

Just remember that your script can't include files that is not on the machine..;)

Of course not. Then no includes exist. :lmao:

The compiled script can find a include folder when inside the AutoIt directory as relative search is used so may follow the same outside the install directory so long as you have a include folder still next to it. You can use a3x files to be sure if includes are used.

Link to comment
Share on other sites

Hi Uten

Just remember that your script can't include files that is not on the machine..

Yeah I'll have to ponder on that some, as my original intention was just for simple scripts ... though of course, that will be up to the end user ... I may have to give them a double warning - 1) not to do it, and 2) warn if the word include is detected at creation time!

THANKS for the advice! ;)

When I get some space to post my Toolbar program, you'll get to see what I wanted it for - sort of a mini version of trialing a script - somewhat like you can in Scite. At the moment it looks for the AutoIt exe, but I can ammend that now! :lmao:

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

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