[open] Quit by keypress
Hi all! First post here. We started using Opensesame for our Psychology course to build experiments, and now I've quite gotten to like it. So I was now trying to program an experiment of my own, but as it turns out that is harder than expected. So far I've done all the easy stuff (setting up a boring experiment), however what I can't seem to figure out is how to do the following.
I want the user to be able to quit by pressing a key. So right now the setup is I ask for some data, give an instruction, then the loop happens which is a simple and boring task, and the experiment is how long the users continue doing this loop.
For this I need the user to be able to quit the experiment and for it to still be logged. As far as I know it is only possible to quit by pressing esc, but when escape is pressed no logging happens.
It appears I can log the time by logging time_fixatie (my first sketchpad in the loop sequence), so I think I've figured that part out. It's just the having users be able to quit the experiment at any time they want by pressing a button that I can't seem to get right.
Any help would be very much appreciated!