Keyboard_response for some reason needs key to be pressed twice.
Hi All,
I'm trying to run a very basic experiment. I just want to show people some images and then have them rate the images.
People can look at the image as long as they want and when they give their response they are shown the next image.
To do this I use a sketchpad item with the following code:
set duration keypress
set description "Presents Images"
draw image center=1 file="image_[Image_number].jpg" scale=1 show_if=always x=0 y=-128 z_index=0
draw textline center=1 color=black font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="How positive is the content of this image?<br /><br /><br />" x=0 y=320 z_index=0
draw textline center=1 color=black font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text=negative x=-248 y=352 z_index=0
draw textline center=1 color=black font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text=positive x=216 y=352 z_index=0
draw textline center=1 color=black font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="1 2 3 4 5 6 7" x=0 y=352 z_index=0
However, for some reason when you press a key (say pressing 1 to indicate you think the image is negative), nothing happens. You then have to press the key again to make it move to the next trial.
Any idea on why this is happening? I have the duration of the sketchpad set to "keypress" so it should just move to the next one after the first press...
Best,
Eva
Comments
Hi Eva,
Set the duration of the
sketchpad
to 0 and it should work.Eduard
Hi Eduard,
Great! thanks that indeed solved it
Hi, Eva. Just a question. How did you collect the answers of the participants?
HI,
Most likely, she used a keyboard response after the sketchpad.
Eduard