[solved] How to have text input with an image (and updating)
Hello,
This may be redundant, but the last thread I could find on this question was a few years old. So, I'll ask it again for the newer version of opensesame.
I need my participants to be able to view a picture on sketchpad and then enter a multi-character keyboard response. Right now I have them viewing the sketchpad, doing a keypress to advance, and then using text_input to enter their response.
Alternatively, a more complicated arrangement that I would like is for participants to be able to order a sequence and receive updates regarding the order (e.g., water jug problem or tower of hanoi problem) and be allowed to advance once they have solved the multi step problem. How might that be possible?
Thank you for your time.
Jared
Comments
Hi Jared, and welcome to the forum!
In general, both of your questions can be addressed by inline scripting. However, the first one (typing and concurrently displaying an image) is considerably easier to do that the second one (touch/click interaction with an animated display). The code for the first I give you below, the code for the second is something you could try to go for yourself after familiarizing yourself with Python (see here for some tips).
Display image and typed text
Place this code in the Run phase of an
inline_scriptitem. Based on my code in this thread. This assumes you have defined a variableimgnamein theloopitem through which you run this!Good luck!
Edwin
Thanks Edwin!
No worries! Will mark this as solved.