insignia96 Posted June 9, 2009 Posted June 9, 2009 The name is kinda self-explanatory, can i have it so script1 (standalone .exe) Lets the user set some stuff, then compiles a temporary script file (generated by script1) to an exe, that being a standalone too. All hell apprciated! Regards, Insignia96 Visit my website to see all my finished releases!Releases here:UDFs:GUI ResizingColor List (Web Colors)GUIFade_NearestPower
hydroxide Posted June 9, 2009 Posted June 9, 2009 The name is kinda self-explanatory, can i have it so script1 (standalone .exe) Lets the user set some stuff, then compiles a temporary script file (generated by script1) to an exe, that being a standalone too. All hell apprciated!Regards,Insignia96You didn't mention whether you could have Aut2EXE packaged along..If you could have script1.exe and Aut2exe.exe, .. then your tempscript.au3 could be compiled to tempscript.exe. You'll just need to write a wrapper around script1.exe to use aut2exe to compile your temp script. If you don't want to make it very evident, you could probably rename aut2exe to something else .. rename it to exe just as you compile the temp script and later rename it back
BrettF Posted June 9, 2009 Posted June 9, 2009 (edited) You can use command line switches for Aut2Exe.They can be found in the helpfile under:AutoIt -> Using AutoIt -> Compiling Scripts -> Method 3 - The Command LineKeep in mind a copy of Aut2Exe and (maybe) some other files will need to be included with your application. You compiled exe can also execute other scripts and lines. Look in the helpfile under:AutoIt -> Using AutoIt -> Command Line Parameters -> AutoIt specific command Line SwitchesMost of it is self explainitory. I also seem to remember a UDF made by a past forum user. Give the example scripts forum a quick search.... You didn't mention whether you could have Aut2EXE packaged along..If you could have script1.exe and Aut2exe.exe, .. then your tempscript.au3 could be compiled to tempscript.exe. You'll just need to write a wrapper around script1.exe to use aut2exe to compile your temp script. If you don't want to make it very evident, you could probably rename aut2exe to something else .. rename it to exe just as you compile the temp script and later rename it backFileInstall could also be another option, as all you need to do is install it to a Temp folder, compile using the mention parameters, and walla... compiled exe! Cheers,Brett Edited June 9, 2009 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
GEOSoft Posted June 9, 2009 Posted June 9, 2009 You didn't mention whether you could have Aut2EXE packaged along..If you could have script1.exe and Aut2exe.exe, .. then your tempscript.au3 could be compiled to tempscript.exe. You'll just need to write a wrapper around script1.exe to use aut2exe to compile your temp script. If you don't want to make it very evident, you could probably rename aut2exe to something else .. rename it to exe just as you compile the temp script and later rename it backYou don't have to package anything along with the compiled script. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
insignia96 Posted June 9, 2009 Author Posted June 9, 2009 Is it possible to do like ProgAndy uses in his MySQL UDF and have like a Aut2Exeexe.au3 and Autoitwrapperexe.au3 and then extract them to the temp dir when in use? Then on script exit i could delete them. Feasible? Visit my website to see all my finished releases!Releases here:UDFs:GUI ResizingColor List (Web Colors)GUIFade_NearestPower
GEOSoft Posted June 9, 2009 Posted June 9, 2009 Is it possible to do like ProgAndy uses in his MySQL UDF and have like a Aut2Exeexe.au3 and Autoitwrapperexe.au3 and then extract them to the temp dir when in use? Then on script exit i could delete them. Feasible?Yes but remember, you were talking Compiled scripts earlier and now you are talking about a plain script. That would mean that you had to include autoit3.exe to run the script.Best to Compile the scripts and then read up on FileInstall() in the help file. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
BrettF Posted June 9, 2009 Posted June 9, 2009 (edited) Yes but remember, you were talking Compiled scripts earlier and now you are talking about a plain script. That would mean that you had to include autoit3.exe to run the script.Best to Compile the scripts and then read up on FileInstall() in the help file.We must remember too that compiled scripts can run .au3 scripts, so using AutoIt3.exe is not 100% necessary.Usage should be as follows (if memory serves me correct)MyCompileAutoItScript.exe /AutoIt3ExecuteScript "D:\this_is_another_script.au3"Cheers,Brett Edited June 9, 2009 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
insignia96 Posted June 9, 2009 Author Posted June 9, 2009 The program i am writing is a program to generate a launcher for a game. It lets you set some stuff then fills in some blanks in a template script and compiles it. I want both scripts to look standalone. I want all dependencies like aut2exe and AutoIt3Wrapper to be somehow embedded in the .exe for script 1. Script 2 (the generated script) doesn't need anything else. Visit my website to see all my finished releases!Releases here:UDFs:GUI ResizingColor List (Web Colors)GUIFade_NearestPower
BrettF Posted June 9, 2009 Posted June 9, 2009 Why not use some sort of configuration file? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
insignia96 Posted June 10, 2009 Author Posted June 10, 2009 My point is i want those custom values to be hardcoded with no conf file. I could do this if i wanted too but my whole point was trying to eliminate that file. Visit my website to see all my finished releases!Releases here:UDFs:GUI ResizingColor List (Web Colors)GUIFade_NearestPower
insignia96 Posted June 10, 2009 Author Posted June 10, 2009 (edited) If i used this would it work: FileInstall( "C:\Program Files\AutoIt3\Aut2Exe\Aut2exe.exe", @TempDir ) FileInstall( "C:\Program Files\AutoIt3\SCiTE\AutoIt3Wrapper\AutoIt3Wrapper.exe", @TempDir ) Edited June 10, 2009 by insignia96 Visit my website to see all my finished releases!Releases here:UDFs:GUI ResizingColor List (Web Colors)GUIFade_NearestPower
BrettF Posted June 10, 2009 Posted June 10, 2009 Well you can test it? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
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