Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: Script Help: doubleclick and while_pressed

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

Attempting to create a button to clone a deck

I created this mapping:
doubleclick ? clone_from_deck : dump while_pressed

which causes the "while_pressed" to become a toggle function,
in that the button has to be pushed a second time to stop the dump action, instead of just releasing the button.


the
dump while_pressed

works perfectly alone, working only when the button is pressed.


and these
rightdeck ? nothing : reverse while_pressed

letfdeck ?  reverse while_pressed : nothing

both work, so it's NOT the conditional construction that causes that the "while_pressed" not to work




Seems that the doubleclick removes the "while_pressed" action.



I could not find anything about interactions between these types of temporal, button pushes.

Are there any rules to use when coding, the order, do's and don'ts etc.

And how would one script, 2 different resulting actions from one button (without using the shift function)?




----------------------------
PS
Similiarly:
The use of "holding" below also created unexpected results


holding ? reverse : doubleclick ?  clone_from_deck : nothing

I can understand why the above would cause problems



doubleclick ?  clone_from_deck : holding ? reverse : nothing

would have thought this one had a chance of working


* I know "holding" is different then "while_pressed" , just trying to learn how these work together.
 

geposted Fri 12 Feb 21 @ 12:06 pm
locoDogPRO InfinityModeratorMember since 2013
IIDEEJAYII wrote :
just trying to learn how these work together.


they don't, use one or the other, never both.
 

geposted Fri 12 Feb 21 @ 5:21 pm


(Alte Themen und Foren werden automatisch geschlossen)