Jump to content

How to edit our GUI script


kcvinu
 Share

Recommended Posts

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 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)

 

Link to comment
Share on other sites

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)

 

Link to comment
Share on other sites

@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)

 

Link to comment
Share on other sites

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 by Zedna
Link to comment
Share on other sites

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)

 

Link to comment
Share on other sites

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 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)

 

Link to comment
Share on other sites

@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)

 

Link to comment
Share on other sites

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)

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...