(2015-01-21 05:37)ykhehra1 Wrote: For example a script which shows notification text box, but instead of timer showing it while video is on, I want it to wait till video ends.If you're just talking about notifications from your script, I imagine that's fairly easy to do.
I've written a bit of code to handle an issue with multiple notifications (the display time isn't honoured). This works by passing the notification requests to a separate thread and sleeping for the right amount of time before displaying the next notification. It would be a very minor change to check that there were no active players (e.g. music or video) before displaying a notification.
However, the above idea has nothing to do with cron so best not discussed in this thread. If the above idea is of interest, start a new thread and I'll share some code.