# Button Script - ALT-TAB

**URL:** <https://forum.inductiveautomation.com/t/button-script-alt-tab/104471>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [March 31, 2025, 6:06pm UTC](https://forum.inductiveautomation.com/t/button-script-alt-tab/104471 "2025-03-31T18:06:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![1AngelG](https://avatars.discourse-cdn.com/v4/letter/1/dc4da7/32.png) [@1AngelG](https://forum.inductiveautomation.com/u/1AngelG)\
**Post date:** [March 31, 2025, 6:06pm UTC](https://forum.inductiveautomation.com/t/button-script-alt-tab/104471/1 "2025-03-31T18:06:11Z")

</div>

Does anyone know what the script is to launch ALT-TAB from a button making the user able to choose a different Windows window without the need to connect a physical keyboard...

---

<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:** [March 31, 2025, 6:12pm UTC](https://forum.inductiveautomation.com/t/button-script-alt-tab/104471/2 "2025-03-31T18:12:05Z")

</div>

If possible at all, it would be in Vision with [java.awt.Robot](https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/Robot.html).

But once one was sent, Vision would no longer have focus, so you could not automate any further.

Not possible at all with Perspective.

---

<div class="post-metadata">

**Author:** ![dillon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dillon/32/81537_2.png) [@dillon](https://forum.inductiveautomation.com/u/dillon)\
**Post date:** [March 31, 2025, 6:21pm UTC](https://forum.inductiveautomation.com/t/button-script-alt-tab/104471/3 "2025-03-31T18:21:31Z")

</div>

Thought about the same thing to show two Ignition projects from two different gateways on the same screen efficiently. The closest I got into my limited research is creating a button on the header in Firefox [Toolbar button - Mozilla | MDN](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Toolbar_button)

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [April 1, 2025, 1:51am UTC](https://forum.inductiveautomation.com/t/button-script-alt-tab/104471/4 "2025-04-01T01:51:33Z")

</div>

I developed something like this once for a Vision problem.

Here is the thread:  
[How to switch to an external application](https://forum.inductiveautomation.com/t/how-to-switch-to-an-external-application/67414/13)
