matwachich Posted February 1, 2020 Share Posted February 1, 2020 (edited) Hi AutoIters! Here is my new UDF about GUIs: it's an enhanced mixture of Advanced InputBox (deprecated) and KODA Parser (deprecated), with additional functions. What you can do with it: Parse KODA files and directly create GUIs (_GUIUtils_CreateFromKODA) Parse a simple JSON form definition to simply create advanced InputBoxes with any amount/type of input controls (_GUIUtils_CreateFromJSON) Created GUIs are returned as Scripting.Dictionary objects, and you have helper functions to access GUIs controls by their names (_GUIUtils_HWnd, _GUIUtils_CtrlID, _GUIUtils_HCtrl ...) A function that can make a GUI created from KODA/JSON (defined by it's $oForm object) and make it a modal InputDialogBox (just like InputBox, but returns all entered data as Scripting.Dictionary object) Functions are documented, and there are some examples. Consider this UDF as beta, but since I'm currently using it in a small commercial project, it should become production ready in near future. To always get the latest code version, get it from Github (more up to date than this topic). Update 04/02/2020: New simple application example Fixed focused control handling in _GUIUtils_InputDialog Reset input values before returning from _GUIUtils_InputDialog Fixed CloseOnEsc in _GUIUtils_InputDialog Fixed Input not reset Fixed all ListBox items are selected Project now on GitHub https://github.com/matwachich/autoit-guiutils/ Update 05/02/2020: Support for nodate for Date and Time input controls (pass null value) New handling of focused control _GUIUtils_InputDialog: Now, you can specify the focused control in $oInitialData by setting "controlName:focus" = True Updated documentation of _GUIUtils_InputDialog Update 07/02/2020: Bug corrected when setting Data input control Added: abillity to read a single input control New functions (_GUIUtils_GetInputs, _GUIUtils_WriteInputs), documentation completion. Readme file and screenshots on Github Page GUIUtils.zip Edited February 7, 2020 by matwachich stavros70, argumentum and TheDcoder 2 1 Link to comment Share on other sites More sharing options...
argumentum Posted February 2, 2020 Share Posted February 2, 2020 (edited) ...by popular demand: GUICtrlSetOnEvent() Edit: 1) Json_Encode($g_oData, $JSON_PRETTY_PRINT) looks better than the magic 128 2) how did you use <WMDebug.au3> ?, I'm curious. Thanks for sharing this Edited February 2, 2020 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
matwachich Posted February 2, 2020 Author Share Posted February 2, 2020 (edited) GUICtrlSetOnEvent(_GUIUtils_CtrlID($oForm, "ctrlName"), yourFunction) 1) you are right 2) I used it to debug the onChange function (window subclass), just comment it (it is not needed for the UDF) Edited February 2, 2020 by matwachich argumentum 1 Link to comment Share on other sites More sharing options...
matwachich Posted February 4, 2020 Author Share Posted February 4, 2020 Update: A new simple useless application shows how this UDF can help you rapidly developping GUI applications. See first post argumentum 1 Link to comment Share on other sites More sharing options...
matwachich Posted February 5, 2020 Author Share Posted February 5, 2020 Updated Link to comment Share on other sites More sharing options...
matwachich Posted February 7, 2020 Author Share Posted February 7, 2020 Updated 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