# RT data not stored for mouse click

**URL:** <https://discourse.psychopy.org/t/rt-data-not-stored-for-mouse-click/4779>\
**Category:** Builder\
**Created:** [July 1, 2018, 7:30pm UTC](https://discourse.psychopy.org/t/rt-data-not-stored-for-mouse-click/4779 "2018-07-01T19:30:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Half\_Ton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/half_ton/32/2630_2.png) [@Half\_Ton](https://discourse.psychopy.org/u/Half_Ton)\
**Post date:** [July 1, 2018, 7:30pm UTC](https://discourse.psychopy.org/t/rt-data-not-stored-for-mouse-click/4779/1 "2018-07-01T19:30:36Z")

</div>

**OS:** Win10  
**PsychoPy version** v1.90.2  
**Standard Standalone? (y/n)** Y

_Apologies in advance I am extremely new to using PsychoPy so any assistance is greatly appreciated_

**What are you trying to achieve?:**  
I am trying to create a simple visual search experiment where participants are presented with a visual scene consisting of a number of green triangles (distractors) and one red triangle (target). The participant will search the array and use the mouse to click on the target triangle. If the target is not present the participant will press the space bar instead. In this particular issue I am trying to record the reaction time data for the mouse click

**What specifically went wrong when you tried that?:**  
The data set only seems to be recording data for the space bar button press. Am i missing the inclusion of a parameter so that PsychoPy knows to record the RT for the mouse click also?

Full code attached  
[VisSearch.py](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/2X/0/049bfe4b243a14187f620e6325b78203a26de961.py) (23.9 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:** [July 1, 2018, 8:44pm UTC](https://discourse.psychopy.org/t/rt-data-not-stored-for-mouse-click/4779/2 "2018-07-01T20:44:53Z")

</div>

We can’t easily tell by reading the very verbose Python script that Builder generates: it is better to attach an actual Builder .psyexp file if required. But much more preferable would be including screen shots of your Builder mouse component dialog box and any other relevant info. People can respond much more easily and rapidly directly to your post if they don’t have to download and inspect files.

---

<div class="post-metadata">

**Author:** ![Half\_Ton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/half_ton/32/2630_2.png) [@Half\_Ton](https://discourse.psychopy.org/u/Half_Ton)\
**Post date:** [July 2, 2018, 9:15am UTC](https://discourse.psychopy.org/t/rt-data-not-stored-for-mouse-click/4779/3 "2018-07-02T09:15:19Z")

</div>

Hi Michael,

Thanks for the feedback. Apologies for not attaching the screen shot in the first instance. Screenshot of the mouse builder now attached

 ![builder_mouse](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/c/8/c88c3c65c5ef1117aacbc7b585b4d2b9cb60a7b8.png)

---

<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:** [July 2, 2018, 10:49pm UTC](https://discourse.psychopy.org/t/rt-data-not-stored-for-mouse-click/4779/4 "2018-07-02T22:49:48Z")

</div>

This indeed isn’t perhaps as intuitive as it could be, but you should select “on click” as the option for when to “save mouse state”.

---

<div class="post-metadata">

**Author:** ![Half\_Ton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/half_ton/32/2630_2.png) [@Half\_Ton](https://discourse.psychopy.org/u/Half_Ton)\
**Post date:** [July 3, 2018, 11:15am UTC](https://discourse.psychopy.org/t/rt-data-not-stored-for-mouse-click/4779/5 "2018-07-03T11:15:52Z")

</div>

Does the trick. I really appreciate your help with this Michael. Thanks
