Hi Everybody,
I was wondering if it is possible to send key events using VDJ script. I want to do something like mapping the Pads to send "Ctrl+1"key event for example, which is a shortcut to another application (in my case OBS to switch scenes).
The second question is: Can you send commands to Windows to start another programs using VDJ script?
THX in advance
I was wondering if it is possible to send key events using VDJ script. I want to do something like mapping the Pads to send "Ctrl+1"key event for example, which is a shortcut to another application (in my case OBS to switch scenes).
The second question is: Can you send commands to Windows to start another programs using VDJ script?
THX in advance
Posted Sun 17 May 20 @ 8:43 am
No. It's not possible to launch secondary applications from within Virtual DJ using script.
Posted Sun 17 May 20 @ 12:13 pm
OBS has it's own programmable shortcut keys. I linked "pg dn" to start/stop recording I haven't tried any others as I only use OBS for screen recording of vdj interface for demo videos, for actual performance I record with vdj.
As for opening other programs, can be done with a plugin, I made RayPitman [top bloke] a little plugin that opened notepad for his song notes. If you use windows send me a pm if you want something made.
As for opening other programs, can be done with a plugin, I made RayPitman [top bloke] a little plugin that opened notepad for his song notes. If you use windows send me a pm if you want something made.
Posted Sun 17 May 20 @ 2:34 pm
Hi locodog and thanks for the help,
opening other programs from VDJ is not my main problem.
What I want to do is the following:
* In OBS I have like 3 scenes.
* I map every scene selection with a hotkey in OBS. (Like CTRL+1, CTRL+2 etc.)
* Instead of pressing keys on my keyboard I want VDJ to send the key event CTRL+1 when I press a Pad button, so I do not need to have the keyboard around.
But this is not a too big issue. I can use the keyboard, too.
I thought maybe there was a script verb I missed, which could do the job.
Greetings from Germany
opening other programs from VDJ is not my main problem.
What I want to do is the following:
* In OBS I have like 3 scenes.
* I map every scene selection with a hotkey in OBS. (Like CTRL+1, CTRL+2 etc.)
* Instead of pressing keys on my keyboard I want VDJ to send the key event CTRL+1 when I press a Pad button, so I do not need to have the keyboard around.
But this is not a too big issue. I can use the keyboard, too.
I thought maybe there was a script verb I missed, which could do the job.
Greetings from Germany
Posted Mon 18 May 20 @ 8:49 pm
fair enough I think I'm going to try make something anyway that sends F13-24 key strokes, just to see if I can do it, it might come in useful at some point
Posted Mon 18 May 20 @ 9:58 pm
Probably could do with some "middleman"
For example Midi-Yoke or LoopMidi. Map that to VirtualDJ (midi output), then send from Midi app ("middleman") to OBS (that accepts midi inputs to control things in the software)
https://www.tobias-erichsen.de/software/loopmidi.html
http://www.midiox.com/index.htm
Can see a practical example here, connecting VirtualDJ to other app via such:
https://www.virtualdj.com/forums/218737/VirtualDJ_Plugins/The_Advanced_Freestyler_integration_thread.html
For example Midi-Yoke or LoopMidi. Map that to VirtualDJ (midi output), then send from Midi app ("middleman") to OBS (that accepts midi inputs to control things in the software)
https://www.tobias-erichsen.de/software/loopmidi.html
http://www.midiox.com/index.htm
Can see a practical example here, connecting VirtualDJ to other app via such:
https://www.virtualdj.com/forums/218737/VirtualDJ_Plugins/The_Advanced_Freestyler_integration_thread.html
Posted Mon 18 May 20 @ 9:59 pm
Could also use MidiToKey possibly to take direct inputs from your controller, and "map" it to do keyboard key inputs..
https://obsproject.com/forum/resources/midikey2key-translates-midi-events-to-key-shortcuts.590/
Not tested myself, but might require the OBS program to be active window for it to "hear" any keyboard strokes, much as you probably will with your regular keyboard as well (they only work if the program is the active window)
(probably much easier to hit the Tab key (or Win+Alt+Tab) to switch between VDJ and OBS though, and simply do the CTRL 1 scene directly ;-) )
https://obsproject.com/forum/resources/midikey2key-translates-midi-events-to-key-shortcuts.590/
Not tested myself, but might require the OBS program to be active window for it to "hear" any keyboard strokes, much as you probably will with your regular keyboard as well (they only work if the program is the active window)
(probably much easier to hit the Tab key (or Win+Alt+Tab) to switch between VDJ and OBS though, and simply do the CTRL 1 scene directly ;-) )
Posted Mon 18 May 20 @ 10:11 pm
Rune (dj-in-norway) wrote :
...require the OBS program to be active window for it to "hear" any keyboard strokes, much as you probably will with your regular keyboard as well (they only work if the program is the active window)
not the case, OBS can be in the background
Posted Mon 18 May 20 @ 10:21 pm
locodog wrote :
I'm going to try make something anyway that sends F13-24 key strokes, just to see if I can do it, it might come in useful at some point
I made it, well I have my launchpad calling "F13" & "Shift+F13" and OBS sees it.
so more keys will be easy.
If anyone is interested speak up.
side note, might be some power user applications with this one too.
Posted Wed 13 Oct 21 @ 6:10 pm
Hey Locodoc,
I'm interested on how to use this feature. Is it kind of plugin you programmed or how does it work?
Cheers
Jochen
I'm interested on how to use this feature. Is it kind of plugin you programmed or how does it work?
Cheers
Jochen
Posted Sat 20 Nov 21 @ 11:49 am
a plugin and a padpage, my device talks to pads, pads talk to my plugin and plugin sends keystrokes which obs will recognise, in this video, to prove the concept I had to use mouse [and to sort of prove I wasn't using a keyboard with a F13 key], so added a slight delay between pad press and keystroke send, for real use this delay can be turned off.
send me a pm if interested.
Posted Sat 20 Nov 21 @ 3:18 pm