Saving and displaying typed responses

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2022.2.4
Standard Standalone? (y/n) : Y
What are you trying to achieve?: I’m using Builder for my experiments. On Mac (and on Pavlovia), the textbox component works fine, and importantly, saves all of the responses that participants put in. However, on the Windows computers in the lab, only about 10-15% of the responses are saved, even if every response is typed, enter is pressed to end the routine, etc.

  1. Does anyone have any ideas about what’s causing the discrepancy between the computers?
  2. If not, the code component from this demo experiment works, but because I have a white background, the text isn’t showing up. I’ve tried to mimic the way it’s set up there, but because I’m not conversant in python or JS, I can’t tell which component is referring to what, or whether there’s another line of code I can add somewhere that will actually show the responses as they’re being typed on the screen (ideally black text, positioned at [0,0.15]). Can anyone help me with that modification?

ETA: I also came across this post, which seems like it should do what I need it to, but I’m a bear of very little brain re: Python and can’t quite figure out how to adapt it to get it to work for my file. Any pointers would be much appreciated!

Turns out the demo experiment I linked to above does work, it just requires a text component called ‘text’ to be able to display (and reposition, and re-color, etc.) the text. I haven’t figured out how to do it all in a code component—especially not allowing typing to happen before a certain amount of time, or displaying punctuation instead of reading out something like ‘semicolon’—because I have participants coming in and just needed a quick and dirty solution. (And no one should be using punctuation in the experiment anyway.)

Even though I’m able to display the text and everything seems to get saved now, I’m still curious about what the discrepancy is between the computers that makes it so that the textbox is weird on the windows computers even though it works fine on mac computers. Does anyone have any ideas? They’re running the same versions of PsychoPy, so it’s not like something updated and was broken.