Unclickable Stop button (actually, stuck sound input) [FIXED]
Posted: Jul 3rd, '16, 16:05
This may not be a bug as much as my misunderstanding of GP.
As I mentioned, I'm working on a sound recorder. Here's the When Clicked script for the Record button:
(The say "Clicked!" is my debugging.)
This would record successfully, but I could never get it to stop. Here was my original Stop button When Clicked script.
This one would never say "Clicked." I couldn't click it. Nothing would happen.
Then it occurred to me that variable's whose values are greater than zero might not actually be true. I changed it to this:
As I said, maybe this isn't a bug and I just had to learn that only logical operators are true or false. (Though if that's the case, I'd like the boolean constants as blocks "True" and "False," which would be better than using 1 and 0.) I think what led me astray was that I *could* drag the variable into the logical expression. But doing that make the script break completely -- no error messages, just not clickable.
As I mentioned, I'm working on a sound recorder. Here's the When Clicked script for the Record button:
(The say "Clicked!" is my debugging.)
This would record successfully, but I could never get it to stop. Here was my original Stop button When Clicked script.
This one would never say "Clicked." I couldn't click it. Nothing would happen.
Then it occurred to me that variable's whose values are greater than zero might not actually be true. I changed it to this:
As I said, maybe this isn't a bug and I just had to learn that only logical operators are true or false. (Though if that's the case, I'd like the boolean constants as blocks "True" and "False," which would be better than using 1 and 0.) I think what led me astray was that I *could* drag the variable into the logical expression. But doing that make the script break completely -- no error messages, just not clickable.