WinTask Editor

The Editor window is a 3 pane window:

 

 

In the left top window (main one), you write the source code of your script. By using Recording mode, you generate automatically the source code.

The window on the right displays the list of functions available in WinTask. If the right window is not displayed, you can click the Language icon in Editor toolbar or you can press directly F4. In that Language window, clicking All instructions displays the list of all available WinTask functions by alphabetical order. Or you can click a chapter title for displaying the list of functions for this chapter. If you check Show Wizard checkbox, and then you click a function in the list, a wizard for this function is displayed which helps writing the syntax function. When you double click a function, the help on that function is displayed. A context menu is also available when you right click a function name in the Language window. You can too access the help on a function by typing it in the main Editor window, and when the cursor is on the name, just press F1.

The bottom window is the Ouput window, it shows the results of the compilation (when you click Play icon or select Start/Run menu to run the script, the source code is compiled).

 

You can reorganize the display of those windows using View menu:

View/Toolbar : displays the toolbar or not at the top of the Editor window

View/Status bar : displays the status bar or not at the bottom of the Editor window

View/Output window : displays the Output window (bottom one) or not

View/line numbers : displays or not the line numbers on the left of the main window (0001 in the screenshot above)

View/Line highlight : highlights or not the current line (line where the text cursor is) in the source code

View/Show large buttons : displays the icon within the toolbar with large icons or small ones.

 

The Edit menu includes the usual features of such a menu plus some specific to WinTask which are:

Edit/Go to line : puts the cursor text directly on the specified line number which becomes the current line

Edit/Toggle bookmark : marks the line where the text cursor is

Edit/Next bookmark : goes to the next line with a bookmark, the line becomes the current one

Edit/Previous bookmark : goes to the previous line with a bookmark, the line becomes the current one

Edit/Clear all bookmarks : deletes all the bookmarks.

 

The Editor is a colored one, you can change the colors and the fonts used when you type the source code using Configure/Editor menu. By default, a commented line is green, a function name is blue and keywords used by functions are blue.

 

When you write the source code, you can include comments. A comment line starts with the character ' or the word Rem. A block of lines can be a comment, the first line must start with /* and the last line end with */. Here are some comment lines:

' This is a comment
Rem This is a comment
write("c:\test.txt",a$) ' a comment can be written on the right of a line
/* my first line commented
my second line commented
end of my block of lines */

 

Multiple scripts can be opened in the same Editor window. You switch from one to the other by clicking the corresponding Tab at the bottom of the main window (Untitled1 Tab in the screenshot above). You can reorganize the display of multiple scripts using Window/Cascade menu or Windows/Tile menu.