快速登录:  

Forum: VirtualDJ 8.1 Technical Support

话题: Proper use of variables in vdjscripts

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

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
 

发表时间 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">
 

发表时间 Wed 28 Jun 17 @ 6:34 pm


(陈旧帖子或论坛版块会自动关闭)