# How to make an image stimuli disappear while some texts and a slider shows by clicking mouse?

**URL:** <https://discourse.psychopy.org/t/how-to-make-an-image-stimuli-disappear-while-some-texts-and-a-slider-shows-by-clicking-mouse/33904>\
**Category:** Builder\
**Created:** [March 18, 2023, 4:49pm UTC](https://discourse.psychopy.org/t/how-to-make-an-image-stimuli-disappear-while-some-texts-and-a-slider-shows-by-clicking-mouse/33904 "2023-03-18T16:49:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cindysu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/cindysu/32/40016_2.png) [@cindysu](https://discourse.psychopy.org/u/cindysu)\
**Post date:** [March 18, 2023, 4:49pm UTC](https://discourse.psychopy.org/t/how-to-make-an-image-stimuli-disappear-while-some-texts-and-a-slider-shows-by-clicking-mouse/33904/1 "2023-03-18T16:49:46Z")

</div>

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

**OS** (e.g. Win10): win 11  
**PsychoPy version** (e.g. 1.84.x): v2022.2.5  
**What are you trying to achieve?:**

I want to let the participants give a rating after watching an image stimuli, but I can not estimate how much time they need to watch an image stimuli, thus, I wish they can determine when to rate by clicking mouse, I am trying to make an image stimuli disappear while some texts and a slider shows by clicking mouse. The most important thing is that they can not enter the rating state too early or too late, so there still need a minimum and maximum watching time.

As a psychopy beginner, I don’t know how to make it, is there anyone can help me?  
Thanks very much!

---

<div class="post-metadata">

**Author:** ![JensBoelte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jensboelte/32/9060_2.png) [@JensBoelte](https://discourse.psychopy.org/u/JensBoelte)\
**Post date:** [March 20, 2023, 11:27am UTC](https://discourse.psychopy.org/t/how-to-make-an-image-stimuli-disappear-while-some-texts-and-a-slider-shows-by-clicking-mouse/33904/2 "2023-03-20T11:27:59Z")

</div>

Hello cindysu

you could leave the Stop-parameter of your image component empty (and enter just a number for the estimated duration. This duration is used for display purposes only).

![grafik](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/8/7/8732f5ea0e8f5333808c5e741ccd77e4e7f1e493.png)

Do the same for you mouse-component and let a mouse click end the routine. In following routine display the slider and your text.

![grafik](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/0/1/018efaf7627958f37671c0ef30e31768ccdac313.png)

Best wishes Jens

---

<div class="post-metadata">

**Author:** ![cindysu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/cindysu/32/40016_2.png) [@cindysu](https://discourse.psychopy.org/u/cindysu)\
**Post date:** [March 20, 2023, 1:06pm UTC](https://discourse.psychopy.org/t/how-to-make-an-image-stimuli-disappear-while-some-texts-and-a-slider-shows-by-clicking-mouse/33904/3 "2023-03-20T13:06:22Z")

</div>

Hi Jens,

I had resolved the problem by using a keyboard component to end the image trial and enter the slider trial. Although I was trying to do it on one trial, separate the image and slider on different trial seems to be easier.

Thanks for your time and reply.

Best wishes,  
Cindy
