Quick Sign In:  

Forum: General Discussion

Topic: Script School - Page: 16.85

Dieser Teil des Themas ist veraltet und kann veraltete oder falsche Informationen enthalten

AdionPRO InfinityCTOMember since 2006
If you want the map on ctrl or shift as well you can simply assign keyboard_shortcuts to those as well.
For the default map we decided not to since ctrl is also used for some basic shortcuts like ctrl+a, ctrl+c ctrl+v or hold and click to select multiple files. It might be annoying to have the keyboard map pop uo while trying to use the browser.
Therefore the shortcuts we did assign to ctrl are also the ones related to the browser
 

geposted Thu 16 Sep 21 @ 6:33 am
This is all cool stuff ! Thanks for posting more details.

Is there a way to add a second KB, one that VDJ sees and can be set to the default Mapping, and another that VDJ does not see that is used for typing in other applications on a different screen?

When I attempt to add a second USB, KB I don't see it added to Mapping section so one can define its use.
(Both KBs work perfectly, can type on either.)

would a PS2 and USB keyboard combo look different to VDJ so it would see both?

Currently I make to many mistakes, (when attempting to type in other applications), if I have the Default KB mapping enabled .. It would be great if one could have a second KB added for that.
 

geposted Thu 16 Sep 21 @ 6:40 am
AdionPRO InfinityCTOMember since 2006
No, afaik windows does not tell an application which keyboard a key press is coming from.
It might be possible by handling the keyboards with custom code and reading the data from the keyboard directly, but I think the number of people interested in connecting a second keyboard will be too small to justify the complexity
 

geposted Thu 16 Sep 21 @ 6:45 am
Thank you Adion for the speedy reply..

I ask, since most times.. VDJ can do much more then I am aware of.. or imagine,
and I can easily live without a second KB.

Again thanks

---------
And if possible... a second KB could be a inexpensive alternative for a novation lauchpad like, extra set of programmable buttons.
 

geposted Thu 16 Sep 21 @ 6:50 am
locodog wrote :

browser_open_folder is pretty straight forward no point in going over it, personally I'm more a fan of using, browser_enter, browser_folder to navigate browser windows folders & songs, but this is a slightly different way to do the same is thing.

I think you underestimated this action.
First of all it can accept on/off
And when used with "off" as an example it always closes the current sub and then moves backwards one level.
In other words, with just a few presses you can now return to the root of your database with all folders collapsed.
Same goes when used with "on"
You use it to open subfolders and you don't have to worry that if no subfolders are present the focus will switch to songs instead.

Personally in my own keyboard mapper I have mapped BACKSPACE to do "browser_open_folder off" and RETURN (Enter key) to do "browser_open_folder on"

 

geposted Thu 16 Sep 21 @ 12:19 pm
locoDogPRO InfinityModeratorMember since 2013
@Phantom thanks for the clarity.
I'm mostly picking tunes out of a search or a filter or a vFolder so those actions aren't something I use.
 

geposted Thu 16 Sep 21 @ 1:35 pm
Fair, but I though this thread was not meant for what we use, rather what can be done with scripts! :P
 

geposted Thu 16 Sep 21 @ 3:20 pm
Thank you PhantomDeeJay for your post .. always cool to understand more what is possible with each update.

I have wished that there was Sticky post, where staff or others, gave more details for each of the amazing updates and additions to VDJ.

Love VDJ !
 

geposted Thu 16 Sep 21 @ 9:28 pm
Hello everyone. So, I have a few questions.
1) Play Next or automix_add_next - which of these 2 functions will be more suitable for me? You need to add a script to the task schedule:
add one (specific or random) file from the folder as follows! Let's call them * workfile (s), while it is located in one specific folder (or it can be a virtual folder). Next.... We expand the possibilities.... There are 72 files in that folder, 3 pcs. for each hour, i.e. you need to run a file every time that has not yet been played today.

2) Task schedule - This task must be repeated every 20 minutes during the day.

Let's start with this, if there is a correct solution, then I will continue to throw up interesting ideas.
 

geposted Fri 17 Sep 21 @ 4:30 pm
mg_1978PRO InfinityMember since 2008
Hi at all, how i map a button to change focus from browser_window “folders” to brower_window “songs” only if folders focus is in “sample Recording” file or inside the “sample” folder? i have mapped: get_browsed_folder ‘sample’ ? browser_window ‘songs’ : nothing
but doesn’t work :(
 

geposted Tue 28 Sep 21 @ 10:59 am
locoDogPRO InfinityModeratorMember since 2013
param_equal `get_browsed_folder` "YOUR_STRING" ? TRUE : FALSE

could also use

param_contains
with
get_browsed_filepath

if you need the query to not be as specific
 

geposted Tue 28 Sep 21 @ 11:16 am
NicotuxHome userMember since 2014
if its only for samples they are virtual elements

param_equal `get_browsed_song extension` vdjsample ? browser_window songs
 

geposted Tue 28 Sep 21 @ 4:39 pm
mg_1978PRO InfinityMember since 2008
get_browsed_filepath & param_contains ‘Recordings’
is perfect! thanks for the script; i have another question:
with a button i would record max 9 files in folder ‘Recordings’, i have write this script:
browser_gotofolder ‘Sampler\Recordings’ & browser_window ‘songs’ & file_cont 10 ? nothing : sampler_rec ‘master’
but with this script i push 2 time button for recording…1 time for set folder focus in folder ‘Recordings’ and 2 time for recording from master….could i do this with script that record or not pushing only 1 time button? thanks a lot!
 

geposted Wed 29 Sep 21 @ 8:10 am
mr.ZvooK wrote :
Hello everyone. So, I have a few questions.
1) Play Next or automix_add_next - which of these 2 functions will be more suitable for me? You need to add a script to the task schedule:
add one (specific or random) file from the folder as follows! Let's call them * workfile (s), while it is located in one specific folder (or it can be a virtual folder). Next.... We expand the possibilities.... There are 72 files in that folder, 3 pcs. for each hour, i.e. you need to run a file every time that has not yet been played today.

2) Task schedule - This task must be repeated every 20 minutes during the day.

Let's start with this, if there is a correct solution, then I will continue to throw up interesting ideas.


There is no answer or recommendation to my question?
 

geposted Wed 29 Sep 21 @ 12:40 pm
NicotuxHome userMember since 2014
@mg_1978

try

browser_gotofolder 'sampler://Recordings' & browser_enter & param_equal `file_count` 10 !? sampler_rec master

or add some delay for browser to end action if too slow

browser_gotofolder 'sampler://Recordings' & repeat_start dx 170ms 1 & browser_enter & param_equal `file_count` 10 !? sampler_rec master

take care about the count if some more 10 other records exist, script will do
may prevent by using

browser_gotofolder 'sampler://Recordings' & browser_enter & param_bigger `file_count` 9 ? sampler_rec master
 

geposted Wed 29 Sep 21 @ 2:22 pm
mg_1978PRO InfinityMember since 2008
@Nicotux
thanks a lot, your scripts works!

today my question is: if i use scripts like ‘mic_rec’ or ‘linein_rec’, in the deck there is the recorded…can i directly save a .vdj or .mp3 file (with script button that i don’t know) that is in my deck? or i can only put deck recorded in loop and use sampler_rec 1 (for example) to create a sample file .vdj? thanks
 

geposted Thu 30 Sep 21 @ 8:14 am
locoDogPRO InfinityModeratorMember since 2013
@mr.ZvooK, setting up adverts?

make a filter that grabs for your 72 files, also include & Last Play > 0.5
[use 0.5 as 1 would allow for no variety day after day]
Random is tricky, maybe when your 20 minute timer strikes, jump to your filter,
something like this to get a random number,
set test `param_mod "file_count" "get_time elapsed"`

then use test as the count for a rsi performing browser_scroll
 

geposted Thu 30 Sep 21 @ 1:45 pm
locoDogPRO InfinityModeratorMember since 2013
JUMP TO FILTER & set test `get_clock 1000 & param_multiply 0.001 & param_cast 'frac' & param_multiply 1000` & set test `param_mod "file_count" "get_var test"` & var_smaller 'test' 0 ? param_multiply "get_var test" -1 & RSI WITH BROWSER SCROLL : RSI WITH BROWSER SCROLL

I forgot about get_clock 1000, probably the best way to get a random number.
 

geposted Fri 01 Oct 21 @ 7:36 am
mg_1978PRO InfinityMember since 2008
have you any ideas??? thanks a lot

today my question is: if i use scripts like ‘mic_rec’ or ‘linein_rec’, in the deck there is the recorded…can i directly save a .vdj or .mp3 file (with script button that i don’t know) that is in my deck? or i can only put deck recorded in loop and use sampler_rec 1 (for example) to create a sample file .vdj? thanks[/quote]

 

geposted Sat 02 Oct 21 @ 8:37 am
NicotuxHome userMember since 2014
TIP about complex actions in actions
( I don't know how site will accept this :\ )

Sometimes actions need to use result of actions and strings
they can use back quotes and quotes and apostrophes ( `xxx` 'xxx ' and "xx" )

when the result have to be display in a text or button or slider ....
the skin need to enclose it in quotes or apostrophes
text="" or format="" or action="" ...
this can be an issue

there is a standard workaround to this : remember xml entities : > < & " '

you can then write complex strings like that :

action="param_add `param_add "get_text ')' " 'param_add "get_automix_song artist +1"' " - (" ` `param_add 'get_automix_song title +1' "get_text ' Comming next : ' " ` & param_cast text"
 

geposted Sun 03 Oct 21 @ 6:19 am
36%