[solved] Collect semicolon responses?
Hi again 
Is there some way to collect keyboard responses with the semicolon (;)? The difficulty is that the allowed responses takes a semicolon separated list, so including a semicolon causes an error.
Thanks,
Per
Comments
Hi Per,
No :O Not through the keyboard_response item anyway. I opened an issue on GitHub.
You can do it fairly easily using an inline_script though:
from openexp.keyboard import keyboardmy_keyboard = keyboard(self.experiment, keylist = ["'", ";"], timeout = 3000)
start_time = self.time()
key, end_time = my_keyboard.get_key()
self.experiment.set("response", key)
self.experiment.set("response_time", end_time - start_time)
Also, see the openexp.keyboard api.
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!