# Emulating Mouse Clicks With Perspective

**URL:** <https://forum.inductiveautomation.com/t/emulating-mouse-clicks-with-perspective/95864>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [September 11, 2024, 4:36pm UTC](https://forum.inductiveautomation.com/t/emulating-mouse-clicks-with-perspective/95864 "2024-09-11T16:36:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 11, 2024, 5:11pm UTC](https://forum.inductiveautomation.com/t/emulating-mouse-clicks-with-perspective/95864/5 "2024-09-11T17:11:40Z")

</div>

_If_ you can guarantee where you're running these instances, you could **theoretically**"escape" the browser in a safe way using a deeplink.

That is, inside Perspective trigger a navigation event to `customApplication://someArguments` (instead of `http://someUrl`).  
Then, **if** the local system has a protocol handler registered (this must be done out of band, you **cannot** do this on the page for the reasons Phil called out already), the web browser will **prompt** the user asking if they want to use `customApplication` to open the link:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/9/19a37a1a97dc4fa1859aaa38179051cf2f81adb0.png)

Then your custom application can be launched as-close-to-seamlessly-as-is-possible, from Perspective.

I'm handwaving **entirely** over the "custom application" piece of this. You'll need to code something that both registers with the OS as a URL handler (or can be registered manually as a handler) _and_ is capable of doing the automation of clicks in your other application(s). This is a non-trivial engineering task requiring some actual software development.

But if you _have_ to use Perspective, that's (as far as I know) the best you can do.

---

_[View the full topic](https://forum.inductiveautomation.com/t/emulating-mouse-clicks-with-perspective/95864)._
