# Don't allow components under container to be clicked

**URL:** <https://forum.inductiveautomation.com/t/dont-allow-components-under-container-to-be-clicked/70785>\
**Category:** Ignition\
**Tags:** vision, ignition81, scripting\
**Created:** [March 8, 2023, 4:34pm UTC](https://forum.inductiveautomation.com/t/dont-allow-components-under-container-to-be-clicked/70785 "2023-03-08T16:34:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![israel.jordan](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@israel.jordan](https://forum.inductiveautomation.com/u/israel.jordan)\
**Post date:** [March 8, 2023, 4:34pm UTC](https://forum.inductiveautomation.com/t/dont-allow-components-under-container-to-be-clicked/70785/1 "2023-03-08T16:34:07Z")

</div>

Hello All,

I have been trying to get user input while in the middle of my script execution using popup windows. But Ignition doesn't allow the script to pause while the popup is open. I have tried using the options in [Adding a Delay to a Script](https://docs.inductiveautomation.com/display/DOC79/Adding+a+Delay+to+a+Script) but I can't get them to work the way that I want. So I have been trying to show/hide containers to achieve my goals. When I get to a point where I need the user input, I display the container, exit the current execution and continue to a function in the root container once I've received the user input. But what I am finding is that even though my displayed container is covering the entire screen, I am still able to click on the components under it.

Question 1:  
Is there a better way that I can get the user input and use it in the code that follows?

Question 2:  
Is there a way to stop clicking the components under the container?

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [March 8, 2023, 4:54pm UTC](https://forum.inductiveautomation.com/t/dont-allow-components-under-container-to-be-clicked/70785/2 "2023-03-08T16:54:05Z")

</div>

Put pass in the mouseclicked event on the container.

 ![pass](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/9/a9afc1cc2d0578b9183725c35b9237546d0a3536.png)

---

<div class="post-metadata">

**Author:** ![israel.jordan](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@israel.jordan](https://forum.inductiveautomation.com/u/israel.jordan)\
**Post date:** [March 8, 2023, 4:59pm UTC](https://forum.inductiveautomation.com/t/dont-allow-components-under-container-to-be-clicked/70785/3 "2023-03-08T16:59:53Z")

</div>

That seems to do the trick. Thank you!
