cartwall loading

Hi Torben, is there an option to load cartwalls via a script?

Much in the same way as playlists, I have been asked if cartsets could change at scheduled times via a script. This way as a presenter changes, his or her favourite bank of carts would be ready loaded.

Kind regards tony

Tony,
Don’t forget you can specify normal mAirList Commands within the Events Editor :wink:

Cheers charlie, I was hoping for a script along the lines of taking the formatdatetime into account and then run this in the event scheduler.

Unless there is a workaround to save making an event for each cartset (which are named in the format ddd hh)?

Kind regards tony

I had an inkling that was where you were heading with that request - Sorry, I don’t know offhand of a solution.

Turns out to be easy-peasy 8), thanks to Charlie’s helpful clue about commands.

begin
  ExecuteCommand(
    'CARTWALL LOAD SET ' +
    'C:\wherever\whatever.mlc'
    );
end.

Obviously you can amend this to account for date/time stuff, as in scripts passim. Note that you DO need the space after SET in the command!

Also note that in general—providing one exists—you should always use the pukka scripting statement (like LoadPlaylistFromFile) to do something, instead of using ExecuteCommand. ExecuteCommand should be reserved for use on those few occasions (like the present one) where there is no specific scripting command but there is an equivalent ‘standard’ mAirList command.

BFN
CAD

Many thanks Cad, I had tried things along the line CartWall Load Set but could not see the rest of the function needed.

Here is a working example loading by current hour:

begin ExecuteCommand('CARTWALL LOAD SET ' + 'C:\carts\' + FormatDateTime('ddd hh', now) + '.mlc'); end.

Thanks again.

Kind Regards Tony

You’re welcome, Tony! ;D

But again: if Charlie hadn’t mentioned Commands, it wouldn’t have clicked in my head when I later found ExecuteCommand in the mAirList Script Help file! :smiley:

BFN
CAD

Hi, another one I’m struggling with.

begin ExecuteCommand('OPEN DESKTOP ' + 'C:\desktop\' + FormatDateTime('ddd hh', now) + '.mld'); end.

To open desktops from a script (then we can use a hotkey to open them). Is this possible?

No errors are generated.

Kind Regards tony

OPEN DESKTOP is not yet available as a command.

Thank you Torben.

Kind Regards tony

I don’t think I know of any mAirListScript functions to do that either, off the top of my head.

BFN
CAD

That’s true, because opening and saving desktop files takes places in the GUI components of mAirList which cannot be accessed from scripts.

This will be different starting from mAirList 3.0. You can then load desktop files from a script.