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
richardnottv  
#1 Posted : Friday, May 13, 2022 1:36:16 AM(UTC)
richardnottv

Rank: Newbie

Groups: Registered
Joined: 4/2/2022(UTC)
Posts: 1

That would be useful and also include the ability to toggle MIDI keypad activators from scripts.

So many items are partially implemented and a lot are missing implementation examples.
doggy  
#2 Posted : Friday, May 13, 2022 2:25:33 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 4,032
Belgium
Location: Belgium

Thanks: 239 times
Was thanked: 731 time(s) in 595 post(s)
Originally Posted by: SPbAG Go to Quoted Post
Please help. How to organize waiting for a keypress? And depending on whether the key is pressed or not, to fulfill one or another condition?

if ... 'key press

else 'key not press
...


this woudld be vb.net related (usable within vMix scripting)

like this
SPbAG  
#3 Posted : Friday, May 13, 2022 3:00:10 AM(UTC)
SPbAG

Rank: Newbie

Groups: Registered
Joined: 5/12/2022(UTC)
Posts: 4
Russian Federation
Location: Saints-Petersburg

Thanks: 1 times

how can this be used in vmix scripts?
SPbAG  
#4 Posted : Friday, May 13, 2022 3:14:30 AM(UTC)
SPbAG

Rank: Newbie

Groups: Registered
Joined: 5/12/2022(UTC)
Posts: 4
Russian Federation
Location: Saints-Petersburg

Thanks: 1 times
The goal is for the script function to be executed while the key is pressed. The key was released - the function loop exited
doggy  
#5 Posted : Friday, May 13, 2022 4:18:56 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 4,032
Belgium
Location: Belgium

Thanks: 239 times
Was thanked: 731 time(s) in 595 post(s)
Originally Posted by: SPbAG Go to Quoted Post

how can this be used in vmix scripts?


sorry no idea (my mistake) , more used byme in external scripts

Have you looked through this forum ?
https://forums.vmix.com/posts/m29757-vMix-18--Send-hotkey-and-API-commands-from-vMix#post29757 for example
Salvatore  
#6 Posted : Friday, May 13, 2022 5:07:48 AM(UTC)
Salvatore

Rank: Member

Groups: Registered
Joined: 11/15/2021(UTC)
Posts: 14
Italy

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
If you use a Streamdeck try this:
Add a shortcut, Select the „Streamdeck Button down“ Key with the „ScriptStartDynamic“-Function in combination with loop

do while true
API.Function("Function")
loop

Add a second shortcut, Select the „Streamdeck Button up“ Key with your end Function
thanks 1 user thanked Salvatore for this useful post.
SPbAG on 5/13/2022(UTC)
Users browsing this topic
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.