We are about to switch to a new forum software. Until then we have removed the registration on this forum.
In java a jar file can take parameters through the main() method ie:
<code>public static void main(String[] args) {
if(args != null){System.out.println(args[0]);}
}</code>
However the sketch crashes if you add parameters to setup() and putting in a main() method will close the program in a few seconds. I noticed when processing saves your sketch to a .java file it puts in a check for parameters but does nothing with them. How can I access the launch parameters?
Also the open() method allows you to pass arguments to a program, so this must be possible.
Answers
Maybe this? @-)
Thank you so much!