Timeout in keyboard_response does not support placeholder in OSWeb.
I filled Timeout with a placeholder, where the variable was defined in previous codes, in a keyboard_response component. If I ran the experiment in Python mode, it worked perfectly. But if I ran it in OSWeb mode, it worked as if the Timeout was filled with infinite--it didn't continue until I pressed the button.
A short demo is attached. I defined the response_limit = 1e3 in previous codes and filled [response_limit] in Timeout. Run it in different modes and you will see the difference.
Comments
Hi,
Not sure what you mean. When I run your example (and add [response_limit] to the duration field of the sketchpad), the screen remains visible for 1 second no matter whether run in the browser or locally. I am using firefox.
Eduard
Thank you for your replying, Ed.
What I was trying to do was to limit the response window by adding [response_limit] to the Timeout field of keyboard_response. Then the participant had to respond, say, within 1 sec after sketchpad welcome was shown if I let
response_limt = 1e3. If the participant failed to respond within the time window specified by [response_limit], sketchpad End would show 1 sec then.It worked when I also added [response_limit] to the duration field of the sketchpad. But it was different from what I meant. What you did made it impossible to respond within 1 sec after sketchpad welcome appeared. In this case, parcipants could only respond 1 sec after sketchpad welcome was shown. One sec after the sketchpad was shown, the participant had unlimit time window to respond.
Ah, I see. The keyboard item was missing in your example. Now, i can reproduce the error. Would you mind filing a bug report on github? Briefly describing the issue and uploading your example (with a keyboard item)? That would be very helpful.
https://github.com/smathot/OpenSesame
Thanks,
Eduard
Sorry for my carelessness. I just opened an issue for this.
Thank you for your response again.