Se Connecter:     


Forum: VirtualDJ Skins

Sujet: How to perform an action on all decks?
Hello,

I want to use this action and apply it on al decks. This action don`t work.

What is the correct syntaxx?



<button action="toggle '@$xxx7' && deck all repeat_song">
<pos x="+750" y="+17"/>
<size width="360" height="50"/>
</button>


gr. Marcel
 

Posté Sat 18 Apr 26 @ 1:38 pm
<button action="toggle '@$xxx7' & deck all repeat_song">
<pos x="+750" y="+17"/>
<size width="360" height="50"/>
</button>

<button action="toggle '@$xxx7' &amp; deck all repeat_song">
<pos x="+750" y="+17"/>
<size width="360" height="50"/>
</button>


Try these two and see if they solve your problem.
 

The action repeat_song is a toggle, meaning that if enabled on deck 1 but disabled on deck 2, pressing the button will disable on Deck 1 and enable on Deck 2.
If you want to make sure all Decks are on/off at the same time, you can have ..
action="deck 1 repeat_song ? deck all repeat_song off : deck all repeat_song on"


And not sure what the toggle variable is for, perhaps not needed if your issue is the above? Perhaps ...
action="deck 1 repeat_song ? deck all repeat_song off : deck all repeat_song on" query="deck 1 repeat_song"

to get the button light up (assuming you have <on>/<off> graphics