MHz Posted September 30, 2004 Posted September 30, 2004 Quote #Compiler_Run_After = xcopy "%out%" "C:\program files\script\*.*" /yThis works and is a good feature, but what if i would like a folder created when compiling a script?( folder without the compiled exe inside )Or other commands like delete etc?Would it be possible to have Autoit commands instead for to use these options?e.g. #Compiler_Run_Before = DirCreate("C:\program files\script\extra")
Developers Jos Posted September 30, 2004 Author Developers Posted September 30, 2004 (edited) MHz said: This works and is a good feature, but what if i would like a folder created when compiling a script?( folder without the compiled exe inside )Or other commands like delete etc?Would it be possible to have Autoit commands instead for to use these options?e.g. #Compiler_Run_Before = DirCreate("C:\program files\script\extra") <{POST_SNAPBACK}>couldn't you start a batch file or your own script where you have these tasks build in ? Edited September 30, 2004 by JdeB 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.
MHz Posted September 30, 2004 Posted September 30, 2004 Quote couldn't you start a batch file or your own script where you have these tasks build in ?Well, I could. Most times that this option would be needed, I would need to make a batch file. I'll do batch or scripts for these commands.Perhaps later, you may be able to improve on the commands for the compiler, if an idea pops up to simply add to it?Thanks JdeB.
emmanuel Posted September 30, 2004 Posted September 30, 2004 MHz said: This works and is a good feature, but what if i would like a folder created when compiling a script?( folder without the compiled exe inside )Or other commands like delete etc?Would it be possible to have Autoit commands instead for to use these options?e.g. #Compiler_Run_Before = DirCreate("C:\program files\script\extra") <{POST_SNAPBACK}>how about this, since any cmd prompt command will work:#Compiler_Run_Before = md "C:\program files\script\extra"good ol' makedir "I'm not even supposed to be here today!" -Dante (Hicks)
MHz Posted September 30, 2004 Posted September 30, 2004 @emmanuel mkdir is an internal command of command.com. One of the first I tried. Seems that you need to run a batch, script or a exe.
emmanuel Posted September 30, 2004 Posted September 30, 2004 MHz said: @emmanuelmkdir is an internal command of command.com.One of the first I tried. Seems that you need to run a batch, script or a exe. <{POST_SNAPBACK}>Ok, so, use the command interpretter to do it, just like you have autoit do it (with @comspec)... Are you on 9x then?9x with command.com:command /c md "c:\program files\extras""NT" flavours with cmd:cmd /c md "c:\program files\extras" "I'm not even supposed to be here today!" -Dante (Hicks)
MHz Posted September 30, 2004 Posted September 30, 2004 I have XP. Yes, your syntax is very good. Thank you. I did not type it in like that. I did not enter cmd /c. Thanks you very much indeed.
Developers Jos Posted September 30, 2004 Author Developers Posted September 30, 2004 MHz said: I have XP.Yes, your syntax is very good. Thank you. I did not type it in like that. I did not enter cmd /c.Thanks you very much indeed. <{POST_SNAPBACK}>Uploaded a update http://www.autoitscript.com/fileman/users/jdeb/scite4au3updtable.exe that will run the BEFORE and AFTER programs as:RunWait(@comspec & " /c " ....... ,'',@SW_Hide)So you can now also do dos commands.Enjoy, 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.
MHz Posted October 4, 2004 Posted October 4, 2004 The last alteration is working perfectly. Thankyou for doing this for my previous request. You are a good person indeed.
Developers Jos Posted October 27, 2004 Author Developers Posted October 27, 2004 Feel that http://www.autoitscript.com/fileman/users/jdeb/compileau3.exe is ready for Ver 1.0 release:- Added the option to have multiple Run_Before or Run_After compiler directives.Enjoy,Here is the Documentation which will be part of the next Scite4Autoit3 helpfile.CompileAU3 aut2exe wrapper CompileAU3 is a AUT2EXE wrapper program that can compile your script with all settings as save in an INI file or defined in your Scriptsource with Compiler Directives, update the Resource information like Comment, Description, Legal Copyright and Program version of the target executable. CompileAU3 will perform the following tasks for you:Read the command line options like aut2exe supports. Read any info from the Scriptname.Ini file as defaults if its available. Read the input script searching for compiler directives. If found, it will override any other setting. The information is only saved into an INI file when NO Directives are found inside the script. A menu is displayed (there is a compiler directive to show/noshow this menu) Run program(s) defined by the Run_Before directive(s). Run Tylo's AU3Check program (Optional) to verify the script. When errors are encountered you will be prompted if you want to continue or stop the compile process. Run RC.exe (optional) return code reported to console. Run reshack.exe (optional) return code reported to console. Run aut2exe.exe , return code reported to console. Run program(s) defined by the Run_After directive(s). Save all setting to SCRIPTNAME.INI when no directives are found in the script. All settings are save in an INI file in the same directory where the scriptfile is located.- OR -You can also define the Compiler Directives in your script and have CompileAU3.exe compile it with these settings:http://www.autoitscript.com/fileman/users/jdeb/compileau3doc/Scite_instructions_files/CompileAU3.png#Region Compiler directives section ;** This is a list of compiler directives used by CompileAU3.exe. ;** comment the lines you don't need or else it will override the default settings #Compiler_Prompt=y ;y=show compile menu ;** AUT2EXE settings #Compiler_AUT2EXE= ;Override the default compiler with this version. #Compiler_Icon= ;Filename of the Ico file to use #Compiler_Compression=2 ;Compression parameter 0-4 0=Low 2=normal 4=High #Compiler_Allow_Decompile=y ;y= allow decompile #Compiler_PassPhrase= ;Password to use for compilation ;** Target program Resource info #Compiler_Res_Comment= ;Comment field #Compiler_Res_Description= ;Description field #Compiler_Res_Fileversion= ;File Version #Compiler_Res_LegalCopyright= ;Copyright field #Compiler_Res_Field1Name= ;Free format fieldname 1 (could be used for Copyright/Company/Programmer etc #Compiler_Res_Field1Value= ;Free format fieldvalue 1 #Compiler_Res_Field2Name= ;Free format fieldname 2 #Compiler_res_Field2Value= ;Free format fieldvalue 2 #Compiler_Run_AU3Check=y ;Run au3check before compilation ; The following directives can contain %in% , %out%, %icon% which will be replaced by the fullpath\filename. #Compiler_Run_Before= ;process to run before compilation - you can have multiple records that will be processed in sequence #Compiler_Run_After= ;process to run After compilation - you can have multiple records that will be processed in sequence #EndRegion 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.
Chris_1013 Posted October 28, 2004 Posted October 28, 2004 What does RC.exe do? Somehow, I always though this was the same as reshack, but I suppose that doesn't really make sense
this-is-me Posted October 28, 2004 Posted October 28, 2004 RC.exe builds the resource files that reshack then inserts in the exe Who else would I be?
Developers Jos Posted October 28, 2004 Author Developers Posted October 28, 2004 (edited) Chris_1013 said: What does RC.exe do? Somehow, I always though this was the same as reshack, but I suppose that doesn't really make sense <{POST_SNAPBACK}>Its like This-Is-Me says..CompileAU3.exe creates an editable temp.rc file which is then compiled by Rc.exe (resourcecompiler) into a binary resourse file called Temp.res. Rc.exe is incorporated in Compileau3 so will be fileinstall'ed when missing. Reshacker then uses this to update the temp AutoitSC.bin which in its turn is used by aut2exe to create the target.exe. Edited October 28, 2004 by JdeB 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.
SlimShady Posted November 1, 2004 Posted November 1, 2004 Why can't we choose a target location for the executable? Like we can with Aut2Exe...
Developers Jos Posted November 1, 2004 Author Developers Posted November 1, 2004 SlimShady said: Why can't we choose a target location for the executable?Like we can with Aut2Exe...<{POST_SNAPBACK}>because.... 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.
JSThePatriot Posted November 1, 2004 Posted November 1, 2004 I am haivng a problem with the default icon selector. Where can I change the default icon. I am guessing something is buggy with my CompileAU3 or I am doing something wrong because it wont ever change my icon. I have to let it make a .ini and then go in and change the .ini file to have the proper icon location. (It will let me change it using the browse option, but for some reason it wont change the icon ) JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)
Developers Jos Posted November 1, 2004 Author Developers Posted November 1, 2004 (edited) JSThePatriot said: I am haivng a problem with the default icon selector. Where can I change the default icon. I am guessing something is buggy with my CompileAU3 or I am doing something wrong because it wont ever change my icon. I have to let it make a .ini and then go in and change the .ini file to have the proper icon location. (It will let me change it using the browse option, but for some reason it wont change the icon )JS<{POST_SNAPBACK}>JS, What version are you using ?EDIT: Tried several but couldn't get it to go wrong... When you are running ver 1.0 then could you PM me the scenario that makes it go wrong ? Edited November 1, 2004 by JdeB 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.
Developers Jos Posted November 2, 2004 Author Developers Posted November 2, 2004 Uploaded http://www.autoitscript.com/fileman/users/jdeb/compileau3.exe:*** CompileAU3 1.0.2 - Fixed retrieval of Target program from INI. - Fixed Save of AU3Check run to INI. - Added Browsebutton for target program. - Changed AU3Check to run as default. - Run_Before/After handles the following variables: ; %in% , %out%, %icon% which will be replaced by the fullpath\filename. ; %scriptdir% same as @ScriptDir and %scriptfile% = filename without extension.Enjoy, 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.
SlimShady Posted November 22, 2004 Posted November 22, 2004 Before I forget again...Everytime I compile a new file, I get this error message:I found a temporary workaround.Replace .ico,0 with .ico.I hope you fix it soon because it pisses me off that compiling a file takes me 15 seconds, instead of 5 seconds.
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