Session HTML timed removal rule

narrowgauge

92 year oldTrainz veteran
Is there a rule available from any source that after a preset time will remove an HTML page from the screen. I can find nothing that would appear to do this on the DLS. I envisage that this would be used as a child rule to the original trigger for the HTML, or preferably a global rule triggered by the 'Show HTML' rule that would remove any HTML at any point in the session.

Alternatively, is there a replacement 'Show HTML' rule that has this facility built in.

If the answer here is 'No' on all counts, is there some kind person who could please conjure something up for us. ('Us' being the DHR building group)

Thanks in advance

Cheers

Narrowgauge
 
Some more thoughts on the problem.

Mizi made a rule to allow the input of session variables.

Given that it would be then possible to return a variable between -1 and say 300, then that variable could be used by the 'Time Limited Show HTML' rule I am seeking as follows.

Set as second layer child rule to a trigger, the new rule would read the variable. If the value is -1 then it would abort the sequence and exit, preventing the display of the HTML, if the value is zero (default value) then the HTML is displayed in a normal manner and persists until clicked closed or finally, if the value is greater than zero, then that value is used to set the duration of the display in seconds after which it would close the screen and exit.

It is not intended that the action of this rule should interrupt the main sequence of the session.

Any takers? It seems that a rule such as this would be useful to a wider field of session creators than that of the DHR group.

Cheers

Narrowgauge
 
Last edited:
Back
Top