Load eventlist

I am trying this script for loading event lists when mAirlist gets On or OFF air :

begin 
IPlayoutInstance(Instance).GetEventList.LoadFromFile('c:\Mairlist\Events\events.mle');
end.

When running the script I get the error (2:1): Unknown identifier ‘IPlayoutInstance’
Is this script not working for version 7 or did I make a mistake in creating the script?
Hope someone can help me with this.

Hi RuVo80,
Could you please elaborate what actions you need? :slight_smile:

Maybe one(or both) of the below can be to your help?

// Called when mAirList goes ON AIR
procedure OnOnAir;
begin
  -- Your code here
end;

// Called when mAirList goes OFF AIR
procedure OnOffAir;
begin
  -- Your code here
end;

Okay, it’s months ago, but… you don’t need Scripts for functions / actions that are already implemented in mAirList’s configuration… :wink:

2 Likes