Is there a node to close a patch after a video has ended?

I could find the node to restart the system but not one to close the patch.

You need to explain a bit better what you mean with this.

Do you mean to close the render window in which the video is being played?

One idea would be to put the render window in a Manage Process region and close the process when the video is finished.

I should try that, but actually I meant to close the whole program.
Again, I found one to reboot the system but not one for the patch itself.

In that case you can use the Kill command and find the Process ID by name first. If you are exporting your patch as a .exe, then obviously you have to use the name of your exported application.

kill_vvvv.vl (6.0 KB)

2 Likes

Another solution is to use the ProcessId node that comes with .NET and returns the PID of the current process. If you decide to compile your app, you don’t have to change anything since this one always returns the PID of the current process.

To get this node, press CTRL+ALT+E, this will bring the Select Assembly window where you can pick any library that comes with .NET and reference it in your patch. Search for System.Runtime, double-click it and click OK.

The ProcessId node will now be available in the node browser. Then, it’s the same as @seltzdesign said: use the Kill node to.. kill that process.

1 Like

It actually comes in the CoreLib directly: Simply choose PID [System.Application] to get the PID of your app.

1 Like

Oops 🙃