Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: collapse all subfolders and return to my main folder
as i have my music carefully organised in many folders and subfolders...while looking for tracks i sometimes scroll through many subfolders and hence my folder tree becomes very long....is there a way to map a shortcut to collapse all subfolders(including favourite,virtual and filter) and return to the main folder(a favourite in my case)?
i have only managed it partially with this script "browser_gotofolder 1 & browser_folder"
but this only collapses normal subfolders(not others like virtual etc) and if i am navigating in a virtual folder...it expands the folder 1 if it not already expanded as the browser_folder part of the script works in this way---collapse if expanded and vice versa..ps i have tried browser_folder off and browser_folder on but they dont seem to have any effect.
 

Posted Sat 07 Apr 18 @ 7:15 pm
 Best Answer New code for VirtualDJ 2020:

repeat_stop 'rsi_CollapseFolders' & browser_window 'folders' & browser_scroll 'bottom' & param_equal get_browsed_folder_tab 0 ? set '$BRPreviousLevel' 0 & repeat_start_instant 'rsi_CollapseFolders' 50ms & browser_window 'folders' & browser_scroll -1 & param_equal get_browsed_folder_tab 0 ? var_equal '$BRPreviousLevel' 0 ? browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : browser_folder & set '$BRPreviousLevel' 0 & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : set '$BRPreviousLevel' '`get_browsed_folder_tab`' & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : set '$BRPreviousLevel' 1 & repeat_start_instant 'rsi_CollapseFolders' 50ms & browser_window 'folders' & browser_scroll -1 & param_equal get_browsed_folder_tab 0 ? var_equal '$BRPreviousLevel' 0 ? browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : browser_folder & set '$BRPreviousLevel' 0 & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : set '$BRPreviousLevel' '`get_browsed_folder_tab`' & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing

Posted Thu 10 Oct 19 @ 12:23 pm[ selected best answer by locodog on Thu 10 Oct 19 @ 12:44 pm ]
nothing?
 

Posted Mon 09 Apr 18 @ 2:29 pm
Copy/paste this on a custom button:

repeat_stop 'rsi_CollapseFolders' & browser_window 'folders' & browser_scroll 'bottom' & param_equal get_browsed_folder_tab 0 ? set '$BRPreviousLevel' 0 & repeat_start_instant 'rsi_CollapseFolders' 50ms & browser_window 'folders' & browser_scroll -1 & param_equal get_browsed_folder_tab 0 ? var_equal '$BRPreviousLevel' 0 ? browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : browser_folder & set '$BRPreviousLevel' 0 & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : get_browsed_folder_tab & set '$BRPreviousLevel' & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : set '$BRPreviousLevel' 1 & repeat_start_instant 'rsi_CollapseFolders' 50ms & browser_window 'folders' & browser_scroll -1 & param_equal get_browsed_folder_tab 0 ? var_equal '$BRPreviousLevel' 0 ? browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : browser_folder & set '$BRPreviousLevel' 0 & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : get_browsed_folder_tab & set '$BRPreviousLevel' & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing
 

Posted Wed 11 Apr 18 @ 10:38 am
talk about complex! but it works..this leads the highlight scroll at the top..can it be modified to end up to a specific folder?
for now i have reordered my favorite folder(the one i want it to return to) to the top as the script return to the folder on top of th list...
if not it's cool.i can live with the little re order..
thanks!
 

Posted Wed 11 Apr 18 @ 6:26 pm
No it can't, without ending up being 4 times more complex.
However it can be modified to go to a specific folder after reaching the top:


repeat_stop 'rsi_CollapseFolders' & browser_window 'folders' & browser_scroll 'bottom' & param_equal get_browsed_folder_tab 0 ? set '$BRPreviousLevel' 0 & repeat_start_instant 'rsi_CollapseFolders' 50ms & browser_window 'folders' & browser_scroll -1 & param_equal get_browsed_folder_tab 0 ? var_equal '$BRPreviousLevel' 0 ? browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' & browser_gotofolder "MYFAVFOLDER" : nothing : browser_folder & set '$BRPreviousLevel' 0 & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' & browser_gotofolder "MYFAVFOLDER" : nothing : get_browsed_folder_tab & set '$BRPreviousLevel' & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' & browser_gotofolder "MYFAVFOLDER" : nothing : set '$BRPreviousLevel' 1 & repeat_start_instant 'rsi_CollapseFolders' 50ms & browser_window 'folders' & browser_scroll -1 & param_equal get_browsed_folder_tab 0 ? var_equal '$BRPreviousLevel' 0 ? browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' & browser_gotofolder "MYFAVFOLDER" : nothing : browser_folder & set '$BRPreviousLevel' 0 & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' & browser_gotofolder "MYFAVFOLDER" : nothing : get_browsed_folder_tab & set '$BRPreviousLevel' & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' & browser_gotofolder "MYFAVFOLDER" : nothing


MYFAVFOLDER is the name of the folder you want to go after reaching the top

 

Posted Thu 12 Apr 18 @ 10:46 am
this works but with 1 bug...the local music folder is expanded at the end up the script run...
 

Posted Thu 12 Apr 18 @ 4:40 pm
noned01PRO InfinityMember since 2014
Unfortunately this script will not work in Virtual dj 2020 anymore. does anyone know why?
 

Posted Wed 02 Oct 19 @ 4:25 pm
browser_gotofolder 'Listas y Consejos' & browser_folder & browser_folder 'Música Local' true ? browser_gotofolder 'Música Local' & browser_folder

This code is shorter and easier, effective with the 2020 version, you're welcome.
 

Posted Thu 03 Oct 19 @ 9:37 pm
noned01PRO InfinityMember since 2014
Thanks,
In this example, the folders are opened and also closed
but how can you write the script so that all open folders are closed.
 

Posted Thu 10 Oct 19 @ 11:21 am
The original script needs some changes since a few things changed on the way variables are stored in memory.
I will provide the updated script soon...
 

Posted Thu 10 Oct 19 @ 12:17 pm
New code for VirtualDJ 2020:

repeat_stop 'rsi_CollapseFolders' & browser_window 'folders' & browser_scroll 'bottom' & param_equal get_browsed_folder_tab 0 ? set '$BRPreviousLevel' 0 & repeat_start_instant 'rsi_CollapseFolders' 50ms & browser_window 'folders' & browser_scroll -1 & param_equal get_browsed_folder_tab 0 ? var_equal '$BRPreviousLevel' 0 ? browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : browser_folder & set '$BRPreviousLevel' 0 & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : set '$BRPreviousLevel' '`get_browsed_folder_tab`' & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : set '$BRPreviousLevel' 1 & repeat_start_instant 'rsi_CollapseFolders' 50ms & browser_window 'folders' & browser_scroll -1 & param_equal get_browsed_folder_tab 0 ? var_equal '$BRPreviousLevel' 0 ? browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : browser_folder & set '$BRPreviousLevel' 0 & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : set '$BRPreviousLevel' '`get_browsed_folder_tab`' & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing
 

 Selected as best answer Posted Thu 10 Oct 19 @ 12:23 pm
noned01PRO InfinityMember since 2014
It works! Thanks so much!!!
 

Posted Thu 10 Oct 19 @ 3:15 pm
thanks again phantom..it works brilliantly..i have edited it to return to a favorite folder using the edit from the previous script.in case anyone wants it to work that way....

repeat_stop 'rsi_CollapseFolders' & browser_window 'folders' & browser_scroll 'bottom' & param_equal get_browsed_folder_tab 0 ? set '$BRPreviousLevel' 0 & repeat_start_instant 'rsi_CollapseFolders' 50ms & browser_window 'folders' & browser_scroll -1 & param_equal get_browsed_folder_tab 0 ? var_equal '$BRPreviousLevel' 0 ? browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' & browser_gotofolder "My Fav Folder" : nothing : browser_folder & set '$BRPreviousLevel' 0 & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' & browser_gotofolder "My Fav Folder" : nothing : set '$BRPreviousLevel' '`get_browsed_folder_tab`' & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' : nothing : set '$BRPreviousLevel' 1 & repeat_start_instant 'rsi_CollapseFolders' 50ms & browser_window 'folders' & browser_scroll -1 & param_equal get_browsed_folder_tab 0 ? var_equal '$BRPreviousLevel' 0 ? browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' & browser_gotofolder "My Fav Folder" : nothing : browser_folder & set '$BRPreviousLevel' 0 & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' & browser_gotofolder "My Fav Folder" : nothing : set '$BRPreviousLevel' '`get_browsed_folder_tab`' & browser_scroll 'top' ? repeat_stop 'rsi_CollapseFolders' & browser_gotofolder "My Fav Folder" : nothing

JUST REPLACE My Fav Folder WITH YOUR FOLDER NAME
 

Posted Sat 12 Oct 19 @ 4:37 pm
LemmeDjPRO InfinityMember since 2012
Hi, i am another question on this script. Is there any other script or similar that can simply return on the previous folder level0? For example, i have a primary folder called "Disco" and on this, other subfolders called "2020" "2021" eco..If I am on focus on the subfolders, can I with a button go fast on the "Disco" folder?
 

Posted Wed 10 Mar 21 @ 8:35 pm
NicotuxHome userMember since 2014
Example to go to top of parent folder :

repeat_stop rsi_ParentFolder & browser_folder 'folders' & set '$BRPreviousLevel' `get_browsed_folder_tab` & repeat_start rsi_ParentFolder 45ms & param_equal `get_var $BRPreviousLevel` `get_browsed_folder_tab` ? debug same & browser_scroll -1 : & debug top & repeat_stop rsi_ParentFolder
 

Posted Wed 10 Mar 21 @ 9:25 pm