# Closed windows with event gateway

**URL:** <https://forum.inductiveautomation.com/t/closed-windows-with-event-gateway/32675>\
**Category:** Ignition\
**Created:** [February 27, 2020, 6:37pm UTC](https://forum.inductiveautomation.com/t/closed-windows-with-event-gateway/32675 "2020-02-27T18:37:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![f1\_beto](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@f1\_beto](https://forum.inductiveautomation.com/u/f1_beto)\
**Post date:** [February 27, 2020, 6:37pm UTC](https://forum.inductiveautomation.com/t/closed-windows-with-event-gateway/32675/1 "2020-02-27T18:37:45Z")

</div>

I need closed a window with event script (gateway). I am using this comand: system.nav.closeWindow(‘piezas listas’) but it does not work.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [February 27, 2020, 7:14pm UTC](https://forum.inductiveautomation.com/t/closed-windows-with-event-gateway/32675/2 "2020-02-27T19:14:21Z")

</div>

Are you running this on the gateway scripts? Then it will never work.

You need to run it as a Client Event script, on a tag change or whatever you have trigger it, to close windows. I’m guessing your client application is not running directly on the server but instead client computers.
