Possibility of converting inline_script (Python) in OpenSesame interface
I would like to know if there is a chance to use this script in OpenSesame without Python (to be able to run the experiment in OSWeb and Jatos).
My structure is that I have in block loop set of pictures as Pic1 and Pic2 and also two positions - Pos1 and Pos2. Positions are shaffled, so I can not suggest that press 'w' will always be the right answer and etc.
And also I have a timeout for a participant response.
my_keyboard = Keyboard(keylist=[u'w', u'p'], timeout=2000) start_time = clock.time() key, end_time = my_keyboard.get_key() var.response = key var.response_time = end_time - start_time var.response_timeout = int(var.response is None) if var.pos1 == "centerleft": correct_answer = "w" else: correct_answer = "p" if correct_answer == var.response: var.total_correct += 1
Thank you all in advance!