Coding a loop
I have tried different ways to do the following using the usual commands of OS but it looks tedious and tricky because this small routine does not fit the original scope of OpenSesame.
I guess it would be more effective to create an in-line script. Unfortunaltely, I don't master Python. Can you help me ? This is the structure of the routine in "natural" language:
- display "black screen"
- wait until a keypress (y or n or esc)
- if key = y, display "YES" (during a set time)
- if key = n, display "NO" (during a set time)
loop if key <> esc
"black screen", "YES" and "NO" are scketchpads.
To sum up, this routine allows a continuous monitoring of the Y/N choices of the user.
Nothing else ...
Thank you in advance !