Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Multi-character response -- Error; and Performing Arithmetic Operations on Multi-character response

edited June 2016 in OpenSesame

I consulted this post:
http://www.cogsci.nl/forum/index.php?p=/discussion/31/solved-multi-character-keyboard-response-or-simultaneous-sketchpad-and-text_input#

I tried the first code Sebastian posted: I copy-pasted it in an Inline Object following the sketchpad item. I have version 2.9. Trying to run the exp, it crashes after the sketchpad item shows and accepts response, and before getting to the In-Line code item. The error message is w.r.t the line that reads: "if my_keyboard.key.to_chr=="RETURN" "; the error message reads: " 'legacy' object has no attribute 'key'' and Exception Type is Attribute Error. I tried removing to_chr, and replacing RETURN with ENTER. No luck; same message.

I want to collect multi-key response (allowable numerical, comma, backspace, and Enter to collect and terminate"; I want the response collection to happen while the sketchpad remains displayed. The multi-character numeric response will contain commas, backspaces, and Enter, which OS will have to remove so that it can perform arithmetic operations on the entry and present it back to the participant. How do I do this? Can I get response from one block, and call it manipulate it present it to the participant in a subsequent block?

I am a complete coding novice and would appreciate any help.

Sign In or Register to comment.