|Home Script Language Script Editor|
|See also: Installation of Scripts, ImageLab Scripts, ILabPascal - Sample Scripts, ILabPascal - General Functions, Input/Output, ILabPascal - Math, Vectors, Matrices, ILabPascal - Display, ILabPascal - Data Manipulation, ILabPascal - Spectral & Image Processing
The script editor consists of the following three windows: (1) the script editor where you input your script code; (2) the status window which provides feedback during the execution of the script code; and (3) the console window which allows you to output information during the execution of the script.
The script editor is a flexible and powerful text editor which provides syntax highlighting and parameter completion support for the ImageLab script language. It can open up to eight scripts in parallel which are organized by tabsheets. The tabs show the filename of the corresponding script. Clicking the "Execute Script" button compiles and starts the currently visible script.
Parameter CompletionThe editor supports parameter completion of known functions (i.e. all functions and procedures of the ILabPascal library). When typing the opening paranthesis of a parameter list of a library function the editor automatically displays the list of declared parameters of this function as a hint below the text cursor:
Thus you need not remember all the parameters of all available functions, which saves a lot of time during programming. Further, if you want to check the parameters of an already typed function call you can force the declared list of parameters to pop up by clicking into the parameter list and pressing Ctrl-J.
Key MappingIn addition to the standard Windows key mapping, the editor supports a special key mapping which can be activated via the preferences dialog. This key mapping is a subset of the classic "WordStar" keymapping and allows to navigate through the code without using the mouse. Here is a list of shortcuts and their respective actions:
The console window is for debugging purposes only. Any output to the console window is invisible if the script is started outside the script editor. There are a few specific functions which control the output to the console: couts, couti, coutf and FuncMon.