快速登录:  

Forum: VirtualDJ Technical Support

Topic: Script Help: doubleclick and while_pressed

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

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.
 

发表时间 Fri 12 Feb 21 @ 12:06 pm
IIDEEJAYII wrote :
just trying to learn how these work together.


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



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