We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Runnin a sketch without a window
Page Index Toggle Pages: 1
Runnin a sketch without a window (Read 1557 times)
Runnin a sketch without a window
Jun 1st, 2009, 9:42am
 
Hello all,

I'd like my processing application to be invisible and only communicate through TCP/IP. So I want the loop but not the window or the draw().

Is there a way to do this?

Any help would be more than welcome as I'm quite the noob  Embarrassed
Thanks in advance.
Re: Runnin a sketch without a window
Reply #1 - Jun 1st, 2009, 1:19pm
 
I think you will have to go to pure Java for that.

Processing (actually the preprocessor for Processing) expects something that can at least be cast to a PApplet.

For a small class that will loop, you could use a thread saved in a *.java file or made in another IDE (Eclipse, NetBeans, etc):
http://www.janeg.ca/scjp/threads/runnable.html
Re: Runnin a sketch without a window
Reply #2 - Jun 1st, 2009, 6:08pm
 
Nice and clear.
Thanks for your reply  Smiley
Page Index Toggle Pages: 1