# Timer to Close Vision Popup Window

**URL:** <https://forum.inductiveautomation.com/t/timer-to-close-vision-popup-window/60460>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [June 7, 2022, 4:37pm UTC](https://forum.inductiveautomation.com/t/timer-to-close-vision-popup-window/60460 "2022-06-07T16:37:46Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![Melvin\_Miclat](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Melvin\_Miclat](https://forum.inductiveautomation.com/u/Melvin_Miclat)\
**Post date:** [July 15, 2024, 6:29pm UTC](https://forum.inductiveautomation.com/t/timer-to-close-vision-popup-window/60460/21 "2024-07-15T18:29:11Z")

</div>

This is where im confused.

Here do I just select that "!=" and that's it?  
`expired` would be another custom property with an _ **expression** _ binding. This is not a script, scripting language != expression language.

```Where
secondsBetween({Root Container.openTime},now()) > 15

```

---

<div class="post-metadata">

**Author:** ![Melvin\_Miclat](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Melvin\_Miclat](https://forum.inductiveautomation.com/u/Melvin_Miclat)\
**Post date:** [July 15, 2024, 6:30pm UTC](https://forum.inductiveautomation.com/t/timer-to-close-vision-popup-window/60460/22 "2024-07-15T18:30:48Z")

</div>

Also where do i put this script?

secondsBetween({Root Container.openTime},now()) \> 15

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [July 15, 2024, 6:33pm UTC](https://forum.inductiveautomation.com/t/timer-to-close-vision-popup-window/60460/23 "2024-07-15T18:33:46Z")

</div>

expressions use Ignition's expression language found [here](https://docs.inductiveautomation.com/docs/8.1/appendix/expression-functions)

Scripting uses Jython, but as a beginner, just think of it as python 2.7. There are built-in system functions that you can use in scripts but not in expressions found [here](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions)

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [July 15, 2024, 6:35pm UTC](https://forum.inductiveautomation.com/t/timer-to-close-vision-popup-window/60460/24 "2024-07-15T18:35:06Z")

</div>

> [@Melvin\_Miclat](#):
>
> Also where do i put this script?
> 
> secondsBetween({Root Container.openTime},now()) \> 15

This is an expression, not a script. You should visit [www.inductiveuniversity.com](https://www.inductiveuniversity.com/) and do some free training to understand these basics.

---

<div class="post-metadata">

**Author:** ![Melvin\_Miclat](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Melvin\_Miclat](https://forum.inductiveautomation.com/u/Melvin_Miclat)\
**Post date:** [July 15, 2024, 6:37pm UTC](https://forum.inductiveautomation.com/t/timer-to-close-vision-popup-window/60460/25 "2024-07-15T18:37:33Z")

</div>

dkhayes117 I got it to work now. Thanks for your help.

[Previous page](https://forum.inductiveautomation.com/t/timer-to-close-vision-popup-window/60460.md?page=1)
