Jump to content

Creating a compiled script from another?


Tomoya
 Share

Recommended Posts

I currently have a script (Read "Idea") that I am wanting to work on where I will be giving the user the ability to customize the actual compiled script via settings in a precompiled script I give them.

I am trying to see if that is possible and if so how you would go about doing it. Essentially it would have to recreate the given code using something like FileWrite() and then compile it into a .exe for them to run from there.

Edit: Ok I think I have this figured out after goofing around for a sec and think I have solved my own question by running the autoit.exe with the command line arguments to compile the script. Off to test!

Edited by Tomoya
Link to comment
Share on other sites

  • Moderators

Tomoya,

What you want to do is quite possible - I did it as a coding exercise myself some time ago. :)

Just remember that you will need to FileInstall both Aut2Exe.exe and AutoItSC.bin if AutoIt is not installed on the user's machine. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Tomoya,

What you want to do is quite possible - I did it as a coding exercise myself some time ago. :)

Just remember that you will need to FileInstall both Aut2Exe.exe and AutoItSC.bin if AutoIt is not installed on the user's machine. ;)

M23

I was just wondering how I would do that with the autoit.exe and I guess FileInstall() is the perfect solution. I was reading somewhere about a programming "game" that someone used to play with languages with their friends where they would try to get the program to echo it's source code in as few lines as possible. It's actually quite fun to try.

Thanks where I got the idea, thanks for the help.

Edited by Tomoya
Link to comment
Share on other sites

  • Developers

try:

ShellExecute("Aut2exe.exe", ' /in "B:\Folder\Auto It\TestScript\Test\Test.au3"')

jos

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

×
×
  • Create New...