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.
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.
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.
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.