Running Code on Stop

Hiya, I would like to have some Code be execute when I click on “Stop” (after clicking “Run”).

Is this possible, if so: how?

It is probably not possible, as the stop button hard kills the process, but you could look for an onexit hook.

Also, welcome to the community hope you enjoy your time here.

1 Like

I think I tried to mess with those before, and they didn’t work.

1 Like

I see, thanks anyways - was hoping there was an easy way

1 Like

You would have to create a seperate shell terminal and add a listener that detects when your process closes

1 Like