If this template helps then use it. If not then just delete and start from scratch.
OS: Win10 PsychoPy version: 1.90.1 What are you trying to achieve?:
Participants are shown an artificial word and they have to type in what it means in English. I want the answer they are typing in to show on the screen so that participants can see what they are doing and be able to edit it.
What did you try to make it work?:
I tried some code components, but it isn’t working so I’m not even going to put those in, because I’m definitely doing it wrong.
What specifically went wrong when you tried that?:
I have no error message, but nothing shows up on the screen when I type.
hi @dvbridges , thank you for that, it does show on the screen now. but now I have no way of tracking what keys were pressed and if the information entered was correct without which is my DV. is it possible to change that?
@dvbridges thank you very much, it shows in the data now. Just one more issue on this subject, is there anyway for the entered text to show up as correct or not In the data? I have to give feedback to participants and I cannot do that if there is no “correct response” column in the data (at least I think I can’t).
I have a very similar code component to @smile667 and I also want participants to see what they type while the word they need to type is displayed on the screen.
For info, I am using PsychoPy 2020.2.1 standalone version on MacOS 11.1.
My issue is that what participants type appends directly onto the end of the visible word. For example, if the word they need to type is ‘stutter’, this word is displayed on the screen and when the participant types ‘stutter’ it will appear like this:
What I want is the word ‘stutter’ to appear at the bottom of the screen but what participants type to appear in the middle of the screen .
keys = event.getKeys()
if 'space' in keys:
text.text = text.text + ' '
elif 'backspace' in keys:
text.text = text.text[:-1]
elif 'lshift' in keys or 'rshift' in keys:
modify = True
elif 'return' in keys:
continueRoutine = False
text.text = text.text + keys.upper()
modify = False
text.text = text.text + keys
I have tried adding in the following into the ‘Each Frame’ tab without any luck:
keys.pos = (0,0)
Any help would be hugely appreciated!
SOLVED - I also had the word showing up in a text component which is why anything being typed had the appearance of appending directly onto the end of whatever was displayed in the text component! Once I made sure the text component was blank it worked fine!