I try to build a screensaver so i wrote a sketch which works well in Processing.exported application
i export it and remane ".exe" file ".scr"
I put it in windows directory
Then i opened up the screensaver-picker dialog, and selected my screensaver (which just magicly appeared in the list)..
in preview-mode in the screensaver-picker dialog, it works just perfect..but :
when the time runs out, and the screensaver is supposed to turn on, the mouse hour-glass-animation just keeps flickering !!
soi tried to make a very simple sketch to test this trouble
void setup() { size(300,300); }
exactly the same problem !!
may be cause by parameters send by windows..
so i wrote a new code:
// here we overwrite PApplet's main entry point (for application mode) // we're parsing all commandline arguments and copy only the relevant ones
static public void main(String args[]) {
for (int numArg=0;numArg<args.length;numArg++) params.put("p"+numArg,args[numArg]);
// pass on to PApplet entry point String[] newArgs=new String[1]; /********************************************************* /* IMPORTANT: replace this with the name of your sketch * /*********************************************************/ newArgs[0]="test1"; PApplet.main(newArgs); }
Because i have to use few different exe file in the same directory i want to rename lib directory:
when i export application Processing create exe file and lib directory where i can find jar files.
if i rename "lib" by "toto" the exe file deosn't work any more so i suppose i have to modify exe file to explain it have to serch jar file in "toto" but i don't find what i have to modify !!
may be is there a way to tell Processing directly create "toto"
I try to use Threads in order to firtst move several balls.
You will find here my code and the result.
I don't understand why i obtain those ghost !
Maybe someone can help me...
Balle b,b1,b2; int fond=155; color rouge=color(255,0,0); color vert=color(0,255,0);
I wrote a sketch witch use specifics files to save informations.
this sketch is exported (.exe).
those file are saved with .pod extention.
I want to open my sketch by double clik on ".pod" files in order to use data saved in it.
Today i succeded to open my sketch when i double click on pod file but i didn't succed to import in my sketch the name of tis file.
I saw param() function but it works only in brownser.
Is anybody know how can i use in my skecth the ".pod" file name ?
I hope my problem is clear ...if not tell me and i try to explain different way.