logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Amokka  
#1 Posted : Wednesday, November 2, 2016 4:18:19 PM(UTC)
Amokka

Rank: Advanced Member

Groups: Registered
Joined: 4/6/2016(UTC)
Posts: 84
Man
Location: Sweden

Thanks: 25 times
Was thanked: 18 time(s) in 13 post(s)
1/2: Add shortcut function to send keyboard/hotkey command to other applications on the same machine as vMix, using vMix HID controllers (Midi, Shuttle, XBox controller).
2/2: Add shortcut function to send web/API commands to other applications from vMix

Purpose is to control other applications from MIDI devices, without use of additional software.
Mathijs  
#2 Posted : Wednesday, November 2, 2016 6:00:50 PM(UTC)
Mathijs

Rank: Advanced Member

Groups: Registered
Joined: 5/24/2015(UTC)
Posts: 370
Location: Netherlands

Thanks: 16 times
Was thanked: 81 time(s) in 72 post(s)
With the script tab you can write a vb.net script to do what you want and bind that to a key with shortcuts.

Check THIS topic for an example.
Amokka  
#3 Posted : Wednesday, November 2, 2016 8:51:43 PM(UTC)
Amokka

Rank: Advanced Member

Groups: Registered
Joined: 4/6/2016(UTC)
Posts: 84
Man
Location: Sweden

Thanks: 25 times
Was thanked: 18 time(s) in 13 post(s)
Yes, But AFAIK, scripting is only available in 4k & PRO editions?

Also, I know I forgot to specify it in my original post, but I would like to be able to "press-and-hold" a key combination while MIDI tone is on.
I'm not sure that is possible using the scripting feature?
Mathijs  
#4 Posted : Thursday, November 3, 2016 4:46:08 PM(UTC)
Mathijs

Rank: Advanced Member

Groups: Registered
Joined: 5/24/2015(UTC)
Posts: 370
Location: Netherlands

Thanks: 16 times
Was thanked: 81 time(s) in 72 post(s)
Quote:
Yes, But AFAIK, scripting is only available in 4k & PRO editions?


Sure, it is an advanced function. Well worth it.

Quote:
I'm not sure that is possible using the scripting feature?


Check out the My.Computer.Keyboard.SendKeys() function.
You can add multiple keys with My.Computer.Keyboard.SendKeys("key1" + "key2" + "etc")

special keys are written like :

BACKSPACE {BACKSPACE} or {BS}
BREAK {BREAK}
CAPS LOCK {CAPSLOCK}
CLEAR {CLEAR}
DELETE {DELETE} or {DEL}
DOWN ARROW {DOWN}
END {END}
ENTER (numpad) {ENTER}
ENTER ~
ESC {ESCAPE} or {ESC}
HELP {HELP}
HOME {HOME}
INS {INSERT}
LEFT ARROW {LEFT}
NUM LOCK {NUMLOCK}
PAGE DOWN {PGDN}
PAGE UP {PGUP}
RETURN {RETURN}
RIGHT ARROW {RIGHT}
SCROLL LOCK {SCROLLLOCK}
TAB {TAB}
UP ARROW {UP}
F1 through F15 {F1} through {F15}

I did not test this, so no guarantees.
thanks 1 user thanked Mathijs for this useful post.
Amokka on 11/4/2016(UTC)
Amokka  
#5 Posted : Friday, November 4, 2016 10:59:54 AM(UTC)
Amokka

Rank: Advanced Member

Groups: Registered
Joined: 4/6/2016(UTC)
Posts: 84
Man
Location: Sweden

Thanks: 25 times
Was thanked: 18 time(s) in 13 post(s)
Quote:
Sure, it is an advanced function. Well worth it.

I agree. I have Pro.
But sending a hotkey could be a good function for anyone.

Quote:
...special keys are written like:...


That is good and valid info that I can make use of for some other things. Thank you.

However, as far as I can see, vMix will trigger the script on trigger (key/midinote) "down".
The script will then run its life from that point and to it's end - without any further input.

As far as I can figure out, it is not possible to use this scripting solution for functions like an external intercom using keys for PTT (Push-to-talk) or the like.

To effect, a script will only be able to "send-and-release" a hotkey combination.
It will not be able to "send-and-hold-while-vMixTriggerActive".

If anyone can show me a script method of "send-and-hold-while-vMixTriggerActive", I will be most grateful.

Best,
Mathijs  
#6 Posted : Friday, November 4, 2016 3:21:18 PM(UTC)
Mathijs

Rank: Advanced Member

Groups: Registered
Joined: 5/24/2015(UTC)
Posts: 370
Location: Netherlands

Thanks: 16 times
Was thanked: 81 time(s) in 72 post(s)
Isn't a on-off toggle a good middle way then?
If you want to talk, push it once. Ready talking, push again.

Or maybe you can get exactly what you want, if the midi device you use also registers (key/midinote) "up".
With key down you open the channel, with key up you close it.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.