this will cause the autohide panels to toggle every 20 secs
Did more tests, and there are some issues that need to be addressed.
1. If it's included in the code, it gets turned on when the TM starts without having to click on it.
2. There's no way to stop the auto-changing unless closing the view.
3. Even if it would be possible to start and stop it, it would be hard to know which state it is on especially with a long interval.
For #1, It shouldn't get turned on when TM starts and only get turned on with a click. Maybe separating this into a new onClick command (AutoSwitch) would work better.
For #2, It should toggle to on and off upon clicking on it.
For #3, visibleTrigger="AutoSwitchOn" and "AutSwitchOff" are needed to indicate the status of the button or text.
For the next update I have made the following changes:
1. autoSwitch="command1;command2;etc" autoSwitchInterval="20000" - on clicking the text/button, the commands are invoked automatically in sequence where autoSwitchInterval is the milliseconds gap
2. visibleTrigger="AutoSwitchOn" and "AutoSwitchOff" is also supported but the trigger is global so that means its only useful if you have one autoSwitch element
3. and a new command: StopAutoSwitch
this is how it could look:
<element type="Text" xAnchor="Panel.5" x="0" yAnchor="#Cover.Bottom" y="140" widthDock="#Cover.Right" width="0" align="center" font="Segoe UI" style="Regular" size="8" fg="220,220,220" autoSwitch="OpenAutoHidePanel:#NowPlayingListPanel;OpenAutoHidePanel:#ArtistInfoPanel" autoSwitchInterval="2000" visibleTrigger="AutoSwitchOff" >Start</element>
<element type="Text" xAnchor="Panel.5" x="0" yAnchor="#Cover.Bottom" y="140" widthDock="#Cover.Right" width="0" align="center" font="Segoe UI" style="Regular" size="8" fg="220,220,220" onClick="StopAutoSwitch" visibleTrigger="AutoSwitchOn" >Off</element>
the following from yesterday's version is still supported:
onClick="command1;command2;etc" - in this case the user clicking the same text/button will toggle between the auto-hide panels in sequence
<element type="Text" xAnchor="Panel.5" x="0" yAnchor="#Cover.Bottom" y="140" widthDock="#Cover.Right" width="0" align="center" font="Segoe UI" style="Regular" size="8" fg="220,220,220"onClick="OpenAutoHidePanel:#NowPlayingListPanel;OpenAutoHidePanel:#ArtistInfoPanel">Next</element>