My keyboard to chr command
In my experiment, the subject needs to type a sequence of letters so I've inserted a dialog box according to the guidance in another post (text input functions: http://osdoc.cogsci.nl/3.1/manual/forms/widgets/text_input/).
Now I'm trying to create a loop if the sequence that was typed is wrong. If so, the sequence that was last seen will show again and afterward typing dialog box. Only if the sequence typed correctly the next sequence will be presented. I did it according to this post: http://forum.cogsci.nl/index.php?p=/discussion/31/solved-multi-character-keyboard-response-or-simultaneous-sketchpad-and-text-input.
While the sequence typed correctly it's running, but if there were a mistake it's crashing. How can I fix it?
What does the "my.keyboard.to.chr" command do?
I don't need the "SWITCH" command but I don't succeed to delete it correctly.