Sign in to follow this  
Followers 0
BrettF

Compile a script inside a script...

10 posts in this topic

How can i create a program that will create a script, using inputs, and then compiles it into an exe. Would i just make it type the whole script and then use aut2exe to compile it or is there an easier way??

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Well one way would be to send the code to a text file, saving it as ".au3" and using a console window to compile using Aut2Exe

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

Well one way would be to send the code to a text file, saving it as ".au3" and using a console window to compile using Aut2Exe

Is there an easier way rather than 1 line at a time??

Share this post


Link to post
Share on other sites

Is there an easier way rather than 1 line at a time??

FileInstall maybe.


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

Well one way would be to send the code to a text file, saving it as ".au3" and using a console window to compile using Aut2Exe

A "console window" Is not needed.

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

http://www.autoitscript.com/forum/index.ph...showtopic=22531 shows making an au3 via another script. It does not happen to use inputs from the user, but that should not be that hard to add. You could use FileInstall to place most of the au3 on the hard drive and then StringReplace to change only those lines that you want. Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/forum/index.ph...showtopic=22531 shows making an au3 via another script. It does not happen to use inputs from the user, but that should not be that hard to add. You could use FileInstall to place most of the au3 on the hard drive and then StringReplace to change only those lines that you want.

I couldnt make head or tail of that. are you sure it's the right topic?? With the title "Move MsgBox (/AutoIt3ExecuteScript), Random Move MsgBox" it dosnt sound right?? could you point me where in the topic it is??

Share this post


Link to post
Share on other sites

I couldnt make head or tail of that. are you sure it's the right topic?? With the title "Move MsgBox (/AutoIt3ExecuteScript), Random Move MsgBox" it dosnt sound right?? could you point me where in the topic it is??

Yes, that is the link that I meant to send you to. It shows how to have one script write another script.

Not shown in that link is how to compile it from within the main script - but that is easy.

Maybe I do not understand your question.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

On closer closer inspection, it dose acutually do that. Posted Image'> Thanks.

Depending on how many things you have to change, lauching a script from within a script and using the command line options to pass the variables into the child script might also work for you.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
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
Sign in to follow this  
Followers 0