# "Pause" Perspective clicking until script is done?

**URL:** <https://forum.inductiveautomation.com/t/pause-perspective-clicking-until-script-is-done/42970>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 3, 2021, 5:48pm UTC](https://forum.inductiveautomation.com/t/pause-perspective-clicking-until-script-is-done/42970 "2021-02-03T17:48:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![downerczx](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/downerczx/32/11649_2.png) [@downerczx](https://forum.inductiveautomation.com/u/downerczx)\
**Post date:** [February 3, 2021, 5:48pm UTC](https://forum.inductiveautomation.com/t/pause-perspective-clicking-until-script-is-done/42970/1 "2021-02-03T17:48:05Z")

</div>

Is there a way to “pause” the mouse cursor from being active until a script is done executing? This would prevent a user from exiting a view until the script has completed.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 3, 2021, 6:04pm UTC](https://forum.inductiveautomation.com/t/pause-perspective-clicking-until-script-is-done/42970/2 "2021-02-03T18:04:38Z")

</div>

Perspective scripts run in the gateway. Your client browser controls the mouse. I suspect not.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [February 3, 2021, 7:08pm UTC](https://forum.inductiveautomation.com/t/pause-perspective-clicking-until-script-is-done/42970/3 "2021-02-03T19:08:12Z")

</div>

Nope. Your browser controls Perspective. Perspective/Gateway does not control the browser (other than what the browser displays at a given time).

---

<div class="post-metadata">

**Author:** ![downerczx](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/downerczx/32/11649_2.png) [@downerczx](https://forum.inductiveautomation.com/u/downerczx)\
**Post date:** [February 3, 2021, 8:10pm UTC](https://forum.inductiveautomation.com/t/pause-perspective-clicking-until-script-is-done/42970/4 "2021-02-03T20:10:30Z")

</div>

A better way to fix this is probably to move my script from being on the view to the gateway so it executes whether or not the user browses off of it. Thanks for the responses all.
