So I made this patch that plays a video the instant any key from a group of keys is pressed. When the key is released it stops. This works well as long as the key press repeats continuously. However i want the play’s toggle to switch on at the first instance of the key press then ignore the repeats that follows and then on key release to switch off making the video to stop.
Key repeats when you press any key on your keyboard and you don’t release the key it keeps sending that key ‘vvvvvvvvvvvvvvvvvvvvvvvvvvvv…’ I just want to receive the first and ignore the rest and wait for the release. The key release stops the video.
May I suggest you to create a Counter node and to link it before and after TogEdge? I mean, down Togedge, you get just the first keyboard input (as the TogEdge cuts out all the others); cause in any case I think that the keyboard should keep on sending signals (vvvvvvvvvvvvvvvvvvvvv…) to make possible to “Stop” on key releasing, no?
I want the play toggle to go on only for the first press down (no repeats) and stay that way until release.
This is because i have a hardware input that acts like a keyboard. This sensor only repeats about 30 times then stops. If i want to continue playing the video after those 30 repeats i need the toggle to continue on waiting for the release.
Sorry if i was not clear before.
joreg:I don’t have the sensors with me right now. Will check that later.
An easy answer is to disable repeat keys on Windows 7 but prefer to fix it on my patch.
Thanks for all of your replies. I’ll be back when i figure this out.
Hi ventolimono, which signals that hw sends into vvvv, or better, how vvvv reads these signals?
For example, after the 30th repetition, vvvv receives what? Presumably a Down Edge (seen from a TogEdge POV)…