2tim3_16 Posted February 19, 2007 Posted February 19, 2007 (edited) Hey guys, I'm not confident enough to put this in the Scripts and Scraps section yet, because I feel that it can still use a lot of improvement. Does anyone have any suggestions of how I might accomplish the same functionality, but with more concise/less code? The files in the ZIP are as follows: 1. GUI_Editor.au3 2. GUIScript.ini 3. Gen_Func.au3 4. Installations.au3 GUIScript.ini contains all the settings, menus, tabs, buttons, and functions. GUI_Editor.au3 is the graphical editor for GUIScript.ini. Gen_Func.au3 generates GUI_Functions.au3, which contains all the functions found in GUIScript.ini and is included in Installations.au3. Installations.au3 is the GUI containing all the menus, tabs, buttons, and functions found in GUIScript.ini. Edit: Uploaded changed files. Original files, 17 downloads.GUI_Editor.zip Edited February 20, 2007 by 2tim3_16
2tim3_16 Posted February 19, 2007 Author Posted February 19, 2007 Also, any suggestions on how to compile something like this in such a way that I could use it on a computer that doesn't have AutoIt installed?
MrCreatoR Posted February 20, 2007 Posted February 20, 2007 Use FileInstall() function to include needed files, and then just compile the main script using Aut2Exe P.SIf you want to include script into script, then you can put this - #Include-Once in scripts that must be included, and in main script use #Include <scriptName.au3>. Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team
2tim3_16 Posted February 20, 2007 Author Posted February 20, 2007 Use FileInstall() function to include needed files, and then just compile the main script using Aut2Exe That got me thinking, and I made some changes. Previously, you had to run Gen_Func.au3 every time, because Installations.au3 was deleting GUI_Functions.au3 on exit. Now, I have Gen_Func.au3 just compile Installations.au3, using FileInstall to place the GUIScript.ini in the user's Temp folder. The INI is then deleted when you close Installtions.exe. GUI_Functions.au3 is only deleted when you run Gen_Func.au3 (or Gen_Func.exe).I now have just one file, Installations.exe, which a user needs to run the GUI. The only time an AutoIt installation is necessary is when the user needs to change the Installations GUI.Thanks, MsCreatoR!
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