Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: Problem with scripting

This topic is old and might contain outdated or incorrect information.

Hello,

I want to make a script which should start the 1st deck when the 2nd deck ends playing. I made sth. like this, but it won't work:
deck 2 repeat_start "repeatName" get_time_ms "remain" 1 & deck 1 play
In words:
wait till "deck 2 ends playing", then deck 1 play

My version only starts deck 1 but don't wait till deck 2 has finished playing. I hope you understand what I am trying to say.
 

Posted Sun 29 Sep 19 @ 2:04 pm
You already have a thread open about this here.

Why have you started another one? Just carry on from where you left off.

This one will probably get locked by a mod.
 

Posted Sun 29 Sep 19 @ 2:08 pm
NicotuxHome userMember since 2014
The other thread is about start playing the same deck

this is full of syntax errors:
deck 2 repeat_start "repeatName" get_time_ms "remain" 1 & deck 1 play

repeat_start "repeatName" & deck 2 get_time_ms "remain" 1 ? repeat_stop "repeatName" & deck 1 play

may work better; not tested
 

Posted Sun 29 Sep 19 @ 5:19 pm
locoDogPRO InfinityModeratorMember since 2013
1 get_time_ms is for skins,/controllers it just gets the hundredths of seconds of the time. [not all the time as ms]
2 repeat_start scripts don't accept time values in that way, you'd have to get the time and cast as ms, this can cause issues as this time value becomes the implicit and can really make life [really]difficult for further script in this repeat
3 In your case don't bother with repeat scripts just use the action
relay_play
I'm surprised nobody mentioned this action
 

Posted Mon 30 Sep 19 @ 11:38 am
I haven't noticed this thread... :P I use relay_play all the time... :P
 

Posted Mon 30 Sep 19 @ 11:45 am


(Old topics and forums are automatically closed)