selectInput()
in
Core Library Questions
•
1 year ago
Hej,
i try to use the selectInput() function for loading filePath by keyReleased(). This works for 1-4 times but than the sketch interrupt without any print to console line.
This is almost the code i want to use (the selectInput() example code):
String loadPath;
void setup() {
size(100,100);
}
void draw() {
}
void keyReleased() {
if (key == 'o' || key == 'O') {
loadPath = selectInput();
if (loadPath == null) {
println("No file was selected...");
}
else {
println(loadPath);
}
}
}
Maybe someone have an Idea.
Greetz
Flo
1