Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: Quick scripting question
Can you have a mapping for holding and double-click on the same button at the same time?

For instance on a LOAD button it could be:
holding ? unload : doubleclick ? clone_from_deck : load

... but that doesn't work (only the holding part works)
I assume it's because holding and doubleclick are conflicting
 

geposted Tue 11 Jan 22 @ 9:46 am
Correct.
Since both actions (holding and doubleclick) have to time the respective events they do conflict.
However if it's absolutely necessary to use both, then you could implement your own holding/doubleclick solution (by using variables) and have both working.
However it would be a somewhat complex script. Mostly because the "single" / "normal" click has to be delayed until the script determines if you are holding (or not) or doubleclicking (or not) the button.
I had created such a script at some point in the past (can't remember for which case) and while it worked, it was far from a "clean" solution.
 

geposted Tue 11 Jan 22 @ 10:58 am
 

geposted Tue 11 Jan 22 @ 6:15 pm