A nice feature of the Doctor Aquarium program is the ability to write advanced control logic in a scripting language. When a new task is added, using the Task wizard a script is automatically generated based on the triggers, and actions selected by the user. The resulting script, while sufficient for most tasks, still may need to be modified to express more complicated logic. The scripting Language supplied with the program allows such modfication with ease.
The scripting language used by Doctor Aquarium is a powerful subset of Delphi programming language, called DWS (Delphi Web Script). The scripting language is an object oriented version of the Pascal language.
The Doctor Aquarium application comes with a powerful built in editor. The editor features syntax highlighting, and code completion.
The editor is accesible on the
last page, of the the task wizard. You can bring up the task wizzard by creating a new task (from the main menu)
or by double clicking on an already defined task.
The task wizard will automatically generate a script based on the selected triggers, and actions.
To customize a task script, you need select the
'I will write the script' radio button, and then edit the script. At any time you can click the
button to check for syntax errors, and if your script complies correctly you can choose to execute (run) the script.