Forum: VirtualDJ Technical Support
(NOTE: VirtualDJ continuously updated, so many older topic on this forum are most probably already fixed in the current build)
If you need extended support, contact our Support Team.
Forum Guidelines (*) The moderators hold the rights to remove, move or modify posts.
Help with Script...
Topic: Help with Script to toggle Search
I would like to have it TOGGLE to search mode first time Shift is pressed AND Jog_Touch is touched and have the Touch-Platter surface remain in search mode till it is toggled off with another combo of Shift AND Jog_Touch is touched.
Can this be done in the script of the controller? Or is best done with a custom button?
I am new to VDJ scripting any hints or suggestions are appreciated.
Thank you in advance.
Posted 6 days ago @ 11:23 pm
something like this? [didn't test]
Posted 6 days ago @ 11:45 pm
Thanks so much for that script. It still seems to need a something else. (as it did not latch the search mode on )
Using your logic I can get the Search mode to latch on with variations below
shift && jog_touch && var 'twSearchSticks' ? toggle 'twSearchSticks' & touchwheel_touch 'search' : toggle 'twSearchSticks' & touchwheel_touch
shift && jog_touch && var 'twSearchSticks' ? toggle 'twSearchSticks' & touchwheel_touch 'search' : shift && jog_touch ? toggle 'twSearchSticks' & touchwheel_touch
shift && jog_touch ? toggle 'twSearchSticks' & touchwheel_touch 'search' : var 'twSearchSticks' && shift ? toggle touchwheel_touch 'search' : touchwheel_touch
BUT... cannot get it to return to normal NON search mode permanently. ( will return to normal mode if... while touching the platter.... shift is pressed momentarly, and will continue in normal mode as long as the touch is not released, once released it is returns back to search mode)
What do I need to tweak?
Is there a way to see if one is writing bad code as one types it ? IE letting you know you dont have correct syntax or an undefined varible. I am new to VDJ script.
Posted 5 days ago @ 8:31 am
maybe that, again haven't tested.
Posted 5 days ago @ 6:39 pm
Thank you so much for your incites. That also functions the same as the original script. ( in search mode when shift is depressed, does NOT toggle the search)
I have been trying to understand VDJ script. And if I use your script and change the initial condition to:
jog_touch && shift ? toggle 'twSearchSticks' -1 : var 'twSearchSticks' 1 ? touchwheel_touch 'search' : touchwheel_touch
one sees that the condition is ONLY Shift, NOT Jog_Touch AND Shift. Why is that? How do I create a condition where 2 things have to be true? see video
AND if I interchange order of the
shift && jog_touch ? toggle 'twSearchSticks' -1 : var 'twSearchSticks' 1 ? touchwheel_touch 'search' : touchwheel_touch
Then condition shows only jog_touch. (can show video if you like) Again only one condition. ( and is the last )
Any other thoughts, and again Thank you.
Posted 5 days ago @ 10:00 pm