Lissie
November 7, 2022, 7:40pm
1
how do i launch a processing app, that need contents like “data” and “lib” to open? i wanna launch a splashscreen sooo
I just found out making a shortcut to an application works 100% fine, so if you have a script that needs to be executed by another pde sketch, just use an shortcut for the exe file!
1 Like
You mean something like a loading screen that is shown while some work is done in the background?
1 Like
glv
November 8, 2022, 12:53pm
4
Hello @Lissie ,
You could export a Processing sketch (splash screen) and then launch it from within your main Processing sketch.
This may also suit your needs:
This did the trick for me:
PWindow win;
public void settings() {
size(320, 240);
}
void setup() {
surface.setLocation(20,20);
win = new PWindow();
}
void draw() {
background(255, 0, 0);
fill(255);
rect(10, 10, frameCount, 10);
}
void mousePressed() {
println("mousePressed in primary window");
if(win == null) win = new PWindow();
}
class PWindow extends PApplet {
PWindow() {
super();
PApplet.runSketch(new String[] {this.getClass().getSimpleName()}, this);
}
…
Read the entire topic for insights.
It will need some modifications on your part.
:)
Lissie
November 8, 2022, 1:26pm
5
i tried that, it sadly doesnt work. i actually dont know why
glv
November 8, 2022, 1:33pm
6
This may give you some insight:
Thanks again!
The solution here worked:
I made it so it launches when I click a button but it launches my application 2-5 times depending on how long the mouse stays on the button after clicking. It looks like it is a problem with my button. Here is my full code:
//PFont zigBlack;
int b1f = 140;
int b2f = 140;
int b3f = 140;
int b4f = 140;
int v1f = 200;
boolean versions = false;
boolean credits = false;
boolean controls = false;
void setup() {
size(1200,600);
//zigBlack = createFont…
The example above builds the batch file.
You could just create it manually if you know your paths.
:)