Accesso rapido:  

Forum: VirtualDJ 8.1 Technical Support

Topic: Proper use of variables in vdjscripts

Questo argomento è obsoleto e potrebbe contenere informazioni obsolete o errate.

fjtoobHome userMember since 2016
Hi I'm learning vdjscript but cannot get variables to work, been at it for a couple of hours now. Do variables have to be declared?

This is what I'm trying to write:
<button action="auto_crossfade fadetime" rightclick="fadetime+1000ms" dblclick="fadetime-1000ms">
However auto_crossfade sticks to it's default of 4000ms

I've read that perhaps you need to use the SET keyword but in this instance, where in the button action would I put he SET command?
Any guidance would be great thanks
 

Inviato Wed 28 Jun 17 @ 1:42 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
The parameter of the auto_crossfade action is not a variable. It needs to be a specific value.
So you can have a few pre-defined values like ..
<button action="auto_crossfade 1000ms" rightclick="auto_crossfade 2000ms" dblclick="auto_crossfade 5000ms">
 

Inviato Wed 28 Jun 17 @ 6:34 pm


(Vecchi argomenti e forum sono automaticamente chiusi)