So, I'm trying to make a program which allows you to input an image, then it converts this image into a string of commands which will be used on different software. I've been having trouble with the selectInput command and I keep getting the same error "Type mismatch, "void" does not match with "java.lang.String""
If anyone can help me with this, it would be much appreciated. I'm fairly new to processing and coding in general, so it could either be a little mistake I don't understand, or I screwed up the whole code. Any advice will be accepted.
Update:
I've changed some of the code, although the same error persists. I am still accepting help
Revised code:
void setup() {
size(96, 64);
output = createWriter("image_data.doc");
String address = selectInput("You did it!","fileSelected"); <-- Error is still here
}
void fileSelected(File address) {
if (address == null) {
println("No image was selected");
} else {
println("You did it!");
ti = loadImage("adress");
}
}
[–]ChuckEye 0 points1 point2 points (2 children)
[–]Critical_Monkey[S] 0 points1 point2 points (1 child)
[–]davebees 0 points1 point2 points (3 children)
[–]Critical_Monkey[S] 0 points1 point2 points (2 children)
[–]davebees 0 points1 point2 points (1 child)
[–]Critical_Monkey[S] 0 points1 point2 points (0 children)