vMix Forums
»
General
»
General Discussion
»
How to make a script to determine if a key is pressed or not?
Rank: Newbie
Groups: Registered
Joined: 4/2/2022(UTC) Posts: 4
|
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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: SPbAG 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
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 5/12/2022(UTC) Posts: 4 Location: Saints-Petersburg Thanks: 1 times
|
how can this be used in vmix scripts?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 5/12/2022(UTC) Posts: 4 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/15/2021(UTC) Posts: 72 Thanks: 8 times Was thanked: 9 time(s) in 7 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 Code:do while true
API.Function("your Function")
loop
Add a second shortcut, Select the „Streamdeck Button up“ Key with your end Function
|
1 user thanked Salvatore for this useful post.
|
|
|
vMix Forums
»
General
»
General Discussion
»
How to make a script to determine if a key is pressed or not?
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close