vrocco Posted August 13, 2008 Share Posted August 13, 2008 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. Link to comment Share on other sites More sharing options...
weaponx Posted August 13, 2008 Share Posted August 13, 2008 (edited) Yes, it can be done, BUT ....... prereq is Autoit installed on those colleagues computers. Wrong. You can call the compiler from the command line. Look in C:\Program Files\AutoIt3\Aut2ExeC:\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 August 13, 2008 by weaponx Link to comment Share on other sites More sharing options...
yehia Posted August 13, 2008 Share Posted August 13, 2008 it can be dont without even having autoit installed u just needs a compiler and a bin file My Scripts:IE New UDFsElastic images moving under mouse (with a happy valentine's example)_FileRemoveLine Link to comment Share on other sites More sharing options...
Developers Jos Posted August 13, 2008 Developers Share Posted August 13, 2008 (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. Edited August 13, 2008 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 More sharing options...
Developers Jos Posted August 13, 2008 Developers Share Posted August 13, 2008 (edited) yea, brain fart: I meant of course fileinstall(ed) EDIT: You also need UPX.exe when using that option. Edited August 13, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now