I read something about this function but I don’t understand how I could configure it.
I use musicgen to schedule music, and I find a way to schedule “time marker” with the command “#mAirlist DUMMY 0 TOP OF THE HOUR 00:00” …
But how to tell mAirlist that this element has a “soft fixed time” to 00:00.
I will probably have 24 command lines, which each one finishes with “…01:00”, “…02:00”…
Do I have to use script ? If yes, how should I identify “dummy” lines ?
Sorry, I have been busy (slowly getting back to work).
The safest way to determine the class of a playlist item is to check whether the objects implements one of the IFilePlaylistItem, IDummyPlaylistItem etc. interfaces (see the CHM file for a list of available interfaces). In Delphi you would use the “Supports” function, but I don’t think it’s available in Pascal Script. Alternatively, one can use the QueryInterface method, but that’s a little overkill if you’re not too much into COM programming
The easiest solution would be using the GetXMLNodeName function. It returns the same string as found as the “Class” of the item in the XML files (playlists etc.). (In v2.2, the XML output was a bit different, instead of a “Class” attribute, the string was really used as the XML node name, thus the function name. I think I should rename the function to “GetClassname” or so in v3.0.)