# Script window key shortcut combos

**URL:** <https://forum.inductiveautomation.com/t/script-window-key-shortcut-combos/52413>\
**Category:** Ignition\
**Created:** [October 27, 2021, 6:22pm UTC](https://forum.inductiveautomation.com/t/script-window-key-shortcut-combos/52413 "2021-10-27T18:22:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanchit.sahay](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sanchit.sahay](https://forum.inductiveautomation.com/u/sanchit.sahay)\
**Post date:** [October 27, 2021, 6:22pm UTC](https://forum.inductiveautomation.com/t/script-window-key-shortcut-combos/52413/1 "2021-10-27T18:22:50Z")

</div>

I am not sure how to create a Title for this issue, so hoping you go through the description and get it

I need to use windows shortcuts, and link them to scripts.

I need to have a button which when pressed acts as a save only the image of the active window.  
On Windows 10, this is achieved by keyboard shortcut “Windows + Alt + PrintScreen”

I need another button which takes screenshot of the entire screen and will save to the Pictures \> Screenshots folder.  
On Windows 10, this is achieved by keyboard shortcut “Windows + PrintScreen”

Can I add these key combos in a script?

The user screen is to be used in Kiosk mode, and the users do not have a keyboard to use and press these key combos

---

<div class="post-metadata">

**Author:** ![bpreston](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bpreston](https://forum.inductiveautomation.com/u/bpreston)\
**Post date:** [October 27, 2021, 6:33pm UTC](https://forum.inductiveautomation.com/t/script-window-key-shortcut-combos/52413/2 "2021-10-27T18:33:53Z")

</div>

Details are important here. Are you using vision or perspective? If your using perspective, unless something changed I don’t believe it is possible. If your using vision and you want to save it somewhere then the windows short cuts I don’t believe would cut it since you want to have it saved somewhere in the background. A quick search though brings up what others have done to take and save screenshots.

[How to take screenshots of your Ignition windows - Ignition - Inductive Automation Forum](https://forum.inductiveautomation.com/t/how-to-take-screenshots-of-your-ignition-windows/7863)

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [October 27, 2021, 7:30pm UTC](https://forum.inductiveautomation.com/t/script-window-key-shortcut-combos/52413/3 "2021-10-27T19:30:28Z")

</div>

In vision, use [system.print.createImage()](https://docs.inductiveautomation.com/display/DOC81/system.print.createImage)

* * *

This thread has some background on the difficulties of doing it in perspective:

> [@Perspective Screenshot Capture](https://forum.inductiveautomation.com/t/perspective-screenshot-capture/24312):
>
> Hi all, Is there a way to take screen shots / screen captures in Perspective as we did in Vision with system.print functions? I’m thinking of using the system.perspective.download function to print out a byte array of an image/png to a file. It looks like system.file and system.print do not function with Perspective, however. Any ideas here? And would you have to grab the session as the Vision equivalent of a parent window’s parent? Best, Roger

---

<div class="post-metadata">

**Author:** ![sanchit.sahay](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sanchit.sahay](https://forum.inductiveautomation.com/u/sanchit.sahay)\
**Post date:** [October 27, 2021, 7:50pm UTC](https://forum.inductiveautomation.com/t/script-window-key-shortcut-combos/52413/4 "2021-10-27T19:50:21Z")

</div>

I am using Vision 8.1.2  
I am fine Windows saving in somewhere and I copy it to my location via another script

---

<div class="post-metadata">

**Author:** ![sanchit.sahay](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sanchit.sahay](https://forum.inductiveautomation.com/u/sanchit.sahay)\
**Post date:** [October 27, 2021, 7:53pm UTC](https://forum.inductiveautomation.com/t/script-window-key-shortcut-combos/52413/5 "2021-10-27T19:53:40Z")

</div>

This link is quite helpful, I am going through it, and gonna try implementing.  
Thanks
