# Verify if a Vision Window is open in a Project on another computer running Vision Client

**URL:** <https://forum.inductiveautomation.com/t/verify-if-a-vision-window-is-open-in-a-project-on-another-computer-running-vision-client/79168>\
**Category:** Ignition\
**Tags:** vision, scripting\
**Created:** [September 14, 2023, 3:49pm UTC](https://forum.inductiveautomation.com/t/verify-if-a-vision-window-is-open-in-a-project-on-another-computer-running-vision-client/79168 "2023-09-14T15:49:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![serge.payer](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@serge.payer](https://forum.inductiveautomation.com/u/serge.payer)\
**Post date:** [September 14, 2023, 3:49pm UTC](https://forum.inductiveautomation.com/t/verify-if-a-vision-window-is-open-in-a-project-on-another-computer-running-vision-client/79168/1 "2023-09-14T15:49:41Z")

</div>

Hi,  
I'd like to know if it is possible to check (by script) if a specific Window is open in a specific Project on another remote computer (on the same network) running Vision Client?  
Can we get the info from the Gateway?

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [September 14, 2023, 5:43pm UTC](https://forum.inductiveautomation.com/t/verify-if-a-vision-window-is-open-in-a-project-on-another-computer-running-vision-client/79168/2 "2023-09-14T17:43:43Z")

</div>

I couldn't find a ready built-in solution, but there's a few ways to approach it.

If it's always the same window, the same project and the same client, you might just have a window open/close event script on the target project, that checks the hostname (from the [system client tags](https://docs.inductiveautomation.com/display/DOC81/System+Tags#SystemTags-SystemClientTags(VisionOnly))) and sets the value of a memory tag to match the window status.

Otherwise, I would try something similar to [this post](https://forum.inductiveautomation.com/t/access-a-window-reference-from-gateway-script/24359/3) and achieve it using messages.

Please see [system.util.sendMessage()](https://docs.inductiveautomation.com/display/DOC81/system.util.sendMessage) for more details, but the gist of it is you can set `hostName` to send the message only to the specific computer you want and `project` to the specific project you want, while specifying the window name in the `payload`.

Then, in that project, the message handler can check if the specified window is open and send a message back with the result.

You'd need a message handler in your original project that would process the result and do whatever you want with it.

I'm trying to think of a way to make it more automatic, maybe by having the gateway handle a request.

---

<div class="post-metadata">

**Author:** ![serge.payer](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@serge.payer](https://forum.inductiveautomation.com/u/serge.payer)\
**Post date:** [September 15, 2023, 11:35am UTC](https://forum.inductiveautomation.com/t/verify-if-a-vision-window-is-open-in-a-project-on-another-computer-running-vision-client/79168/3 "2023-09-15T11:35:31Z")

</div>

Got it working using your first solution with just a small adjustment as just using the Memory Tag and the visionWindowClosed event on the Vision Window

Works great! Thanks.
