Scripts are one of TRASSIR's strong points. Scripts make it possible to automate common operations, simplify an operator's work, and perform integration. What's more, scripts are fun!
Scripts are written in the Python language.
- Python is the easiest language to learn and it has a simple language syntax. Moreover, Python is a general language; you aren't limited to a predefined set of functions. You can use it to do whatever you want, i.e. file reading, network communication, etc. For more information, see python.org.
- A script can read and change TRASSIR settings, invoke objects' methods, take screenshots, export video, and interact with the user.
- Functions activation (calling) can be done by various events:by object status change, by button pressing, via call from context menu, by the event in the log, by AutoTRASSIR event, by ActivePOS event, by timeout.
- Thanks to the user-friendly interface you can set parameters with a script and use additional resources and libraries in the script itself.
- To protect the script as your intellectual property, it can be encrypted.
Where do you begin?
Start with the examples. The button to load examples is located below the editor. The first four examples are pedagogical; the remaining examples offer various interesting ideas.
You can also begin with the rule editor. Internally, rules work by creating scripts. At the bottom of the editor, there is a button to copy the script's code to the clipboard. The copied code can be pasted into a script and edited.