Comment

Logfile management function.

The Comment function writes a comment to the log file. Not available in WinTask Lite. If you want to write a comment within a script in Editor, use the ' character in front of the text to comment (see WinTask Editor).

Syntax

Comment(<comment_text>)

Parameter

<comment_text>: string to write to the log file.

Remarks

You must have already opened a log file before writing comments; you can use the LogFile function or the TASKEDIT menu Configure|Run.

To write a complex string in the log file, you can concatenate multiple strings using the + operator and you can use str$ function to transform an integer in a string. For example:
Comment("The result for i index is: "+ str$(i))

Example

 

Shell("notepad")

UseWindow("NOTEPAD.EXE|Edit|Untitled",1)

SendKeys("Hello<Enter>")

Comment("Hello was sent! ")