All other buttons can be hidden using command modifiers, eg. @hidenosel:type=*.wav
. I'm trying to make a 3-button that only shows up when .wav files are selected. Is there any way to accomplish that?
Edit: Attaching my button in this post.
<?xml version="1.0"?>
<button backcol="none" display="both" icon_size="large" label_pos="bottom" textcol="none" type="three_button">
<label>Play</label>
<icon1>#play</icon1>
<button backcol="none" display="both" hotkey="shift+alt+f11" icon_size="large" label_pos="bottom" textcol="none">
<label>Play</label>
<tip>Play currently selected sound (.wav) files</tip>
<icon1>#play</icon1>
<function type="normal">
<instruction>@hidenosel:type=*.wav</instruction>
<instruction>@nodeselect</instruction>
<instruction>Play STOPALL</instruction>
<instruction>Play {allfile} QUIET</instruction>
</function>
</button>
<button backcol="none" display="both" icon_size="large" label_pos="bottom" textcol="none">
<label>Play</label>
<tip>Stop all currently playing audio</tip>
<icon1>#play</icon1>
<function type="normal">
<instruction>@hidenosel:type=*.wav</instruction>
<instruction>@nodeselect</instruction>
<instruction />
<instruction>Play STOPALL</instruction>
<instruction />
<instruction>// Also stop any playing audio stream in fmedia* by forcefully</instruction>
<instruction>// killing its process and any child processes started by it.</instruction>
<instruction>// (*I use fmedia to play any audio files other than .wav files)</instruction>
<instruction>@runmode:hide</instruction>
<instruction>taskkill /IM fmedia.exe /T /F</instruction>
</function>
</button>
</button>