Se Connecter:     


Forum: VirtualDJ Technical Support

Sujet: Ask the DJ Script Advice
I am trying to map a pad to flash once a request is received and then when I click the pad it will open the ask the DJ sideview tab. Looking at forums I can get the pad to select the sideview tab with (sideview 'askthedj://') and I can get the button to flash using this script (get_askthedj_unread ? blink 400ms : param_equal `get_browsed_folder` "Ask the DJ" ? goto_last_folder : browser_gotofolder "askthedj://"). However when I get a request cliking the pad does nothing and I have the select the tab manually. Once I've selected this and the flashing has stopped the pad will then open the ask the DJ file. Has any one a script that will achieve my outcome or am I asking to much? Thanks in advance.
 

Posté Wed 05 Mar 25 @ 9:27 pm
( get_askthedj_unread ? blink 400ms : ) & param_equal `get_browsed_folder` "Ask the DJ" ? goto_last_folder : browser_gotofolder "askthedj://"
 

@ Locodog,
Exactly the same problem here. With the given script use then nothing blinks but the message has come in. So I use my old script again so that I at least see something coming in.
 

@Locodog

The problem seems to be in the first part:
"get_askthedj_unread ? blink 400ms :"

If a message comes in and the blinking starts, nothing happens when you press the button. But if no message has come in, you can switch browsers.
 

( get_askthedj_unread ? blink 400ms : ) & & param_equal `get_browsed_folder` "Ask the DJ" ? goto_last_folder : browser_gotofolder "askthedj://"
 

@Locodog
Thanks for your response. "& &" was the solution. Everything works fine again.
 

This is what I use, dont remeber who helped me do this but it works great !

get_askthedj_unread ? blink 375ms & up? show_splitpanel 'sideview' on & sideview 'askthedj://' : nothing : sideview 'askthedj://'? on & up? sideview 'askthedj://'? show_splitpanel 'sideview' off & sideview 'Sidelist' : show_splitpanel 'sideview' on & sideview 'askthedj://' : nothing : off & up? sideview 'askthedj://'? show_splitpanel 'sideview' off & sideview 'Sidelist' : show_splitpanel 'sideview' on & sideview 'askthedj://' : nothing
 

@Freppa
Wow.., that's quite a story, but it does work.
 

From ChatGPT:

VDJscript treats & & as two separate logical OR conditions (& being shorthand for OR in some VDJ contexts, like filter folder syntax).
 

Chatgpt is worthless when it comes to vdj script. And the reply you posted from it is entirely false.
 

That is also the reason I brought this to attention. & & is the solution, nothing wrong with that.