This is a bit of a weird one, but is there a way to stop a sketch from closing? I have found a way to prevent the escape key from closing the sketch, but is there a way to stop the x and double clicking the menu from closing the sketch?
Kevin
December 28, 2018, 6:10pm
3
Please don’t bump threads, especially after only waiting a few hours for a reply.
You might want to look into the setUndecorated() function.
But why do you want to do this?
I have an AI that learns to play a game, and I keep finding ways to close it accidentally. I want to make it so i can only close it through task manager.
Kevin
December 28, 2018, 7:08pm
5
Googling for “Processing setUndecorated” will return a ton of results. Or you could search this forum:
I have 2 windows that I’m creating with the frames example of the controlP5 library. One works as the control window for sliders etc and the other the main sketch window where the artwork gets displayed.
I have 2 monitors. Using fullScreen(2) runs the main sketch window as fullscreen.
However, the control window is much smaller say size(400,800);
I don’t want the title bar and close/minimize buttons at the top.
Has setUndecorated() been completely removed in processing 3?
If so how may I ac…
So I’m talking about applications like discord, they don’t have that ugly windows border around their application, the league of legends client also doesn’t have it, Photoshop also has a custom one. So I know it’s possible but is it possible in processing? And if not, in what language would this be possible?