If there is another way of doing it, I'd appreciate. > What I want to do is keep record of all keys pressed by the subject during each trial, and only end the trial when he/she presses the correct one. It compiles without error, but the keyboard becomes useless (none of the keys i tried, except for 'esc', work). I get the "Allowed keys list is invalid" for all configurations I tried, except one: in the xlsx file, I wrote the names of the keys that should be allowed, and in the builder field, i wrote the variable name between apostrophes ( like this: '$corrTecla' ). I've tried a few combinations of configuration between the xlsx file and the allowed keys field, including inserting the key names between apostrophes in the xlsx, etc. I am trying to use variables in the allowed keys too. I'm running the latest update 1.75.01 on windows on the builder, and I know nothing of python whatsoever. On 4 Jan, 2013, at 08:43, Raul Gonçalves wrote: Raul- just to check explicitly: do you want to have lists of allowed keys that vary from trial to trial, and hence you are trying to have them specified as a variable from a conditions. ![]() ![]() So if a variable name was used in the allowedKeys field, Builder would be trying to evaluate it at compile time, although it won't actually be defined until runtime?] Raise CodeGenerationException(self.params, "Allowed keys list is invalid.") [In the lines from approximately 112 in keyboard.py it says: Raul- ignore the following bit in brackets, it is mainly directed to Jon, or someone else who understands Builder component conventions: I could be wrong, but it seems from looking at the code within the Builder keyboard component that it can't (currently) work with variable names in the AllowedKeys field.
0 Comments
Leave a Reply. |