User Tools

Site Tools


Sidebar

<< Back


koda:en:documentation:tools_update_script

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:
#Region ### START Koda GUI section ### Form=example.kxf
$Form1 = GUICreate( ...)
 .
 .
 .
GUISetState(@SW_SHOW)
#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:

  1. Create your form
  2. Save it (to a .kxf file)
  3. Do Tools → Generate Form Code (or press F9)
  4. 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 Ctrl+U

koda/en/documentation/tools_update_script.txt · Last modified: 2014/07/10 10:48 (external edit)