Jump to content

Recommended Posts

Posted

I don't know if this can be done, but maybe someone can help. I want to make a script that takes certain inputs from a user and then uses those inputs to make and compile another script to do something.

Confused? For example......

I only want a user to be able to install a program on a certain day. I can make a script that checks the date on the computer (set by central server and not changeable by the user) and if it's not the proper day, it just exits. However, I have some colleagues who aren't as scripting "saavy" (not that I'm an expert). I want to make them a script that will allow them to input the date (in this example) and the program to run and it will write those variables into an Autoit script and compile it so they can push it out to their users.

Clear as mud now?

Thanks for the help.

Posted (edited)

Yes, it can be done, BUT ....... prereq is Autoit installed on those colleagues computers. :P

Wrong. You can call the compiler from the command line. Look in C:\Program Files\AutoIt3\Aut2Exe

C:\Program Files\AutoIt3\aut2exe\aut2exe.exe /in "C:\Documents and Settings\user\Desktop\RecursiveSearch.au3" /out "C:\Documents and Settings\user\Desktop\RecursiveSearch.exe" /comp 2 /pack /Bin C:\DOCUME~1\user\LOCALS~1\Temp\AutoItSC.bin

Edited by weaponx
  • Developers
Posted (edited)

It will need aut2exe and AutoItSC.bin to be able to compile a script from a script which could be FileInclude(d) FileInstall(ed) in the script.

:P

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

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