How to Pin Windows with a Hotkey in Windows 10

pin window hotkey4

This post told you how to pin windows in Windows 10 so that one stays on top of the others. However, DeskPins doesn’t include any options to set up hotkeys that pin windows. But you can pin windows with a keyboard shortcut by setting up an AutoHotkey script. 

First, open the AutoHotkey website to add the software to Windows 10. Click the Download button there to save the setup. Then run through the setup installer.

Next, you should right-click the desktop and select New and AutoHotkey Script from the submenu. That will add an AutoHotkey file to your desktop which you can set up a pin me hotkey with. First, right-click New AutoHotkey Script and click Rename. Enter ‘Pin Window’ as the new title for the shortcut.

pin window hotkey

Now you should right-click the AutoHotkey file on desktop and select Edit Script from the context menu. That will open the Notepad window shown in the snapshot below. You can delete all the text it includes.

pin window hotkey2

Then enter the following into the Notepad window: ^SPACE::  Winset, Alwaysontop, , A. You can copy and paste that with the Ctrl + C and Ctrl + V hotkeys. Click File > Save to save the file.

pin window hotkey3

You can now run the script by right-clicking the Pin Window (AutoHotkey) shortcut and selecting Run Script. Then you’ll find an H icon in the system tray that highlights the script is running. The hotkey you can press to pin windows is Ctrl + Space.

To try it out, minimize a few windows to taskbar. Click one of the taskbar windows to open it, and press Ctrl + Space. Then that window will always remain on top when you open other windows. Press Ctrl + Space again to unpin selected windows.

This is certainly a handy hotkey to have. Now you can press the keyboard shortcut to keep the most essential window on top.

Posted by Matthew on August 18, 2016

Leave a Reply

Your email address will not be published. Required fields are marked *

TechJunkie Also Recommends