User Tools

Site Tools


scripting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripting [2020/07/10 08:24] tondosescripting [2020/07/14 08:20] (current) – removed tondose
Line 1: Line 1:
-====== Scripting ====== 
  
-To meet user-specified tasks, mAirList is offering a powerful scripting engine which provides extended control functions. With it, users may write their own programmes and extend mAirList’s functionalities significantly. 
- 
-The code resembles a subset of the //Delphi/TurboPascal// language, for which a comprehensive and well-structured reference can be found under [[http://delphibasics.co.uk/|delphibasics.co.uk]]. mAirList-specific functions and procedures are to be found – formatted as Windows help file – [[https://www.mairlist.com/download/current/mAirList/v6.1/scriptinghelp/mAirListScript.chm|here]]. 
- 
-**Note:** The full set of functions and procedures is featured only in the latest version of mAirList. Therefore, unaltered scripts originating from well-aged portions of the [[https://community.mairlist.com/|mAirList Support Forum]] may be prone to cause issues. 
- 
- 
-==== Script Types ==== 
- 
-Scripts can be established in two different ways: Either as a standalone or as a background script. 
- 
- 
-=== Standalone Scripts === 
- 
-Standalone scripts resemble a full delphi programme to be run by external action, such as the menu item 
- 
-''mAirList > Run Script...'' 
- 
-or the [[reference:remote_control_commands|remote control command]] 
- 
-''RUNSCRIPT <file>''. 
- 
- 
-=== Background Scripts === 
- 
-For particular events within the mAirList programme, i. e. when a player is started or some marker is passed whilst playback, mAirList is calling an associated procedure by default. If no background script is available, no further action is taken. However, if a background script exists, the code therein will be executed on the said event. 
- 
-Furthermore, certain procedures provide parameters related to the regarded event – such as the ''procedure OnPlayerStart'' yields information about the assigned player, the item being played and its position whithin the playlist. 
- 
-An overview of the provided background script procedures is supplied with each version of mAirList within the file ''Background Script Template.mls''. 
- 
- 
-==== Creating Code ==== 
scripting.1594369495.txt.gz · Last modified: 2020/07/10 08:24 by tondose

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki