User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

koda:en:documentation:tools_update_script [2014/07/10 10:48] (current)
Line 1: Line 1:
 +====== Update Script ======
 +Tools -> Update Script updates GUI code in a .au3 file to that in the currently active form.
 +This menu item is only enabled if:
 +  * the .au3 file exists and is in the same directory as the .kxf file
 +  * the GUI definition section of the .au3 file is in this format:
 +<code autoit>
 +#Region ### START Koda GUI section ### Form=example.kxf
 +$Form1 = GUICreate( ...)
 + .
 + .
 + .
 +#EndRegion ### END Koda GUI section ###
 +where //​example.kxf//​ is the currently active form.
 +Koda is capable of updating any of the GUI definition sections in a .au3 file.
 +When Koda generates code, it does so in this format. So to begin using the Update Script feature:
 +  - Create your form
 +  - Save it (to a .kxf file)
 +  - Do Tools -> Generate Form Code (or press <​key>​F9</​key>​)
 +  - Choose //Save to file//, click on it, name the .au3 file and click on //Save//
 +To place several GUI definitions in the same .au3 file, rather than doing step 4, copy the GUI definition to the Clipboard and paste it into the .au3 file using SciTe. Then, whenever the currently active form is the visual representation of one of the .kxf files, Update Script will be enabled.
 +The keyboard shortcut for this function is <​key>​C-u</​key>​
koda/en/documentation/tools_update_script.txt ยท Last modified: 2014/07/10 10:48 (external edit)