# Recording Multiple Mouse Clicks on a grid of letters

**URL:** <https://discourse.psychopy.org/t/recording-multiple-mouse-clicks-on-a-grid-of-letters/14156>\
**Category:** Builder\
**Created:** [June 10, 2020, 5:00pm UTC](https://discourse.psychopy.org/t/recording-multiple-mouse-clicks-on-a-grid-of-letters/14156 "2020-06-10T17:00:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![calebo55](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/calebo55/32/7772_2.png) [@calebo55](https://discourse.psychopy.org/u/calebo55)\
**Post date:** [June 10, 2020, 5:00pm UTC](https://discourse.psychopy.org/t/recording-multiple-mouse-clicks-on-a-grid-of-letters/14156/1 "2020-06-10T17:00:58Z")

</div>

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

**OS** (e.g. Win10): Win 10  
**PsychoPy version** (e.g. 1.84.x): 2020.1.3  
**Standard Standalone? (y/n)** If not then what?: Y  
**What are you trying to achieve?:**

I am creating an automated O-span task that presents math problems followed by letters. The number of letters presented varies from 3-7 letters. After the presentation of the letters, the participants are shown a 4x3 grid of possible letters. They need to click on the letters that were presented to them, so I need the mouse component to record multiple clicks (based on the number of letters that were presented)

**What did you try to make it work?:**

I’m not totally sure where to begin other than creating the grid of letters and adding a mouse component that doesn’t end the routine on click.

Here is the builder file I am working with. The task is the WM task which is the first loop.

[experiment2.psyexp](https://discourse.psychopy.org/uploads/short-url/975uwhXWAScaeWbZrhIT3mRzVBv.psyexp) (83.8 KB)

---

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [June 10, 2020, 9:48pm UTC](https://discourse.psychopy.org/t/recording-multiple-mouse-clicks-on-a-grid-of-letters/14156/2 "2020-06-10T21:48:43Z")

</div>

This seems to have been answered here:

> [@Mouse click record selections and end routine on final “okay](https://discourse.psychopy.org/t/mouse-click-record-selections-and-end-routine-on-final-okay/7245/5):
>
> It should be set to “every repeat” so that the colour re-sets at the beginning of each trial to its default value that you specify. If it is set to “every frame”, it would keep updating with the default value 'white' you provide, which would immediately counteract the change applied in the code, so no change would be apparent. “constant” would mean that it should change in response to the code, but not get re-set at the start of each trial. If it is still not changing, it would be worth tempor…
