How save mouse response on every frame?

Hi, I’m trying to save the response on each frame but Its seems that the coding isn’t registering all the responses

for clickable in clickables:
if response1.isPressedIn(clickable):
clicked_things.append(clickable.name)
thisExp.addData(‘response1’, clickable)


Shouldn’t this be

for clickable in clickables:
     if response1.isPressedIn(clickable):
          clicked_things.append(clickable.name)
          thisExp.addData('response1_' + clickable.name, t)

This will have one column per clickable and give the routine time of the most recent click.

If you want all the data in one column with a new row for each this then you’ll need to add thisExp.nextEntry() to move to a new line.

1 Like