Using Scripts |
The scripting environment is accessed through the tools-menu, if the module: 'Scripts' is installed. Scripts can be written in either Pascal or Basic. Automation comes with a number of scripts that serve as examples, and add functionality. In scripts, there is no need to create a connection to Automation. The connection already exists through the 'PCsApplication' object. So if you use the Delphi-code-examples to write scripts, you can omit the call of CheckConnection().
Here is a simple example of a pascal-script adding a text to a page:
Code: