Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: search with custom button
Hello,
I would like to say in advance that I use VirtualDJ purely for home use.
I've managed my music collection with Mediamonkey for years and have come to appreciate the extensive search and display options. However, for a long time now I have learned the advantages of playing the titles from VirtualDJ.
In order to make it easier for me to search for certain titles, I have the following procedure. When I have a track loaded in a deck and playing it, one of the things I want to do is search and find tracks by the same artist.
For this I have created a button in the skin "Project Control" from DennoYo for each deck that contains the following search queries: search >`deck left get_loaded_song 'artist'`<
or for the same title: search >`deck left get_loaded_song 'title'`<
When the button is pressed, the corresponding term of the deck is also entered in the search bar, but all fields marked with the gear wheel (next to the search bar) are searched for.

My question now, is there a way to add a command to the search >`deck left get_loaded_song 'title'`< call so that the search is only made under the titles and I don't have to edit the list where the search is to be made every time?

Example: search `deck left get_loaded_song 'title'` in column Title
or
search `deck left get_loaded_song 'title'` where title == title

Thank you for reading

Greetings Michael from Berlin

Translated with Google
 

Posted Wed 17 May 23 @ 10:11 am
locoDogPRO InfinityModeratorMember since 2013
The setting you're interested in is
setting searchFields

this will store your usual setting that can be recalled later
set $usualSearch `setting searchfields`

this will give you just a title search
setting searchfields 1

this is how you restore for a variable
get_var $usualSearch & param_cast & setting searchfields

the number used depends on what you want but they are numbered like this

title = 1
artist = 2
filepath = 4 [yes 4 ]
8
16
etc

so if you just want a title & filepath search then your number is 1+4 = 5
they are numbered as you find them in the search dropdown as ^2
 

Posted Wed 17 May 23 @ 10:30 am
Thanks, I'll try that once!
 

Posted Wed 17 May 23 @ 10:34 am
Hello,
would this spelling be correct to search for a title in the list of titles?

setting searchFields 1
search `deck left get_loaded_song 'title'`
 

Posted Wed 17 May 23 @ 11:17 am
locoDogPRO InfinityModeratorMember since 2013
set $usualSearch `setting searchfields` & setting searchfields 1 & search `deck left get_loaded_song 'title'` & wait 100ms & get_var $usualSearch & param_cast & setting searchfields


full example, save, set, search, give it 100ms, reset search fields.
 

Posted Wed 17 May 23 @ 12:39 pm
Thanks, the example works as I imagined. I only changed the value of wait from 100ms to 500ms.
 

Posted Fri 19 May 23 @ 11:51 am