kcvinu Posted January 17, 2016 Posted January 17, 2016 (edited) Hi all, When making some gui based scripts, i am using koda form designer for making gui. After creating gui, i need to add some extra code to that script. (Adding some functionality of buttons and other controls). And then if i need to edit the gui, i will use the "Import" facility of koda. And i can simply edit my script. It will generate the updated script. And my problem starts from there. My old script contains some extra functions and other codes. But the code generated by koda doesn't contains those code. So it will be a burden for me to find the differences and copy paste the updated code to old script. Is there any solution for this problem ? Please ask any clarification, if you don't get my point. Edited January 17, 2016 by kcvinu Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
kcvinu Posted January 17, 2016 Author Posted January 17, 2016 I have found a partial remedy for this problem. That is - 1. Create the gui in Koda 2. Add additional code to it. 3. If you need to add\edit\update the gui then close that file in SciTE and open it in "Form Builder" (A much better GUI editor for autoit). 4. Click the "GUI (F10)" button or press "F10" 5. It will open the gui as per the old script. 6. Start editing the gui and the code will be automatically updated to the old script. You don't need to mess with 2 identitical scripts and nor need to copy paste the code. 7. After editing, save and close the Form Builder 8. Open your old script in SciTE, Voilà ! it is completely updated as per your last editing. All your extra codes are there. Nothing is gone. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
Zedna Posted January 18, 2016 Posted January 18, 2016 (edited) Exactly this is described in Koda's Helpfile. - in Koda FormDesigner open Helpfile in menu Help/Content - go to section Interface/Menu/Tools/Update Script Edited January 18, 2016 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
kcvinu Posted January 19, 2016 Author Posted January 19, 2016 @Zedna , Koda will delete all codes added by user. Ofcourse it will add new code from our updated GUI. But it will delete all extra code we wrote on it. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
Zedna Posted January 19, 2016 Posted January 19, 2016 (edited) As far as I know Koda just replace GUI related code between #Region tags: #Region ### START Koda GUI section #EndRegion ### END Koda GUI section ### These #Region tags are automatically added when you generate AU3 code from your created GUI Design(er). Edited January 19, 2016 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
kcvinu Posted January 19, 2016 Author Posted January 19, 2016 But i am experiencing this. When i import a comple script that created in Koda (I have edited it for adding a function), i am getting this result. It will delete all my extra added function regardless this #Region Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
Zedna Posted January 19, 2016 Posted January 19, 2016 (edited) As described in helpfile: There must be correct path to KXF form in starting Koda Region tag: #Region ### START Koda GUI section ### Form=C:\Your Path\Your Form.kxf Edited January 19, 2016 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
kcvinu Posted January 19, 2016 Author Posted January 19, 2016 (edited) There is no Path in my version of Koda . See this line. This is from a script saved in desktop #Region ### START Koda GUI section ### Form=Form2.kxf Edit - My koda version 1.7.3.0. build252 Edited January 19, 2016 by kcvinu Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
Zedna Posted January 19, 2016 Posted January 19, 2016 I have the same (last) version of Koda and I have FUUL path in all my AU3 scripts. So try to add full path to your form and try "Update Script" again ... kcvinu 1 Resources UDF ResourcesEx UDF AutoIt Forum Search
kcvinu Posted January 19, 2016 Author Posted January 19, 2016 @Zedna No way. I just included the path and try to update the script. But the same thing happen now. It deletes my own code and it also delete the path from the #Region area also. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
Zedna Posted January 19, 2016 Posted January 19, 2016 I don't use this usually but now I have tried this and it worked, so full path was generated and after changes in GUI "Update Script" updated ONLY GUI part of AU3 code, no other code was touched. Resources UDF ResourcesEx UDF AutoIt Forum Search
kcvinu Posted January 19, 2016 Author Posted January 19, 2016 Then iit is only for me. I need to check the settings of Koda. My koda is not generating any path and it also deleting the path after updating GUI. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
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