How to Pin Windows “Always on Top” Using a Keyboard Shortcut

Dave LeClair 21-06-2016

Have you ever found yourself needing to pin a window to the front on your PC 5 Simple Ways To Keep Selected Windows On Top [Windows] Computers are made to multitask. As a result, we all have to juggle with multiple open windows to jump back and forth between various tasks. Sometimes, however, you just want to keep one window in... Read More ? There are ways to do it, but the one we’re about to show you might be easiest, as once you set it up, you’ll simple need to tap a couple buttons on your keyboard, and you’ll be good to go.


Here’s how to setup an AutoHotkey script 10+ Cool AutoHotkey Scripts & How to Make Your Own AutoHotkey is an easy way to add shortcuts to your computer. You can download ready-to-use scripts or write your own. We show you to become more productive with automated hotkey tasks. Read More to pin a window to the front in just a couple quick steps!

  • Download and install AutoHotkey (it’s free and free of spyware and other garbage).
  • After running through the installation, right-click your desktop and select New, then AutoHotkey Script.
  • Rename the file that was created on your desktop something that makes sense like “Pin to top.”
  • Right-click the file, then select Edit script.
  • Delete the default script from the box, and enter the following

^SPACE::  Winset, Alwaysontop, , A

  • Save the file you just created.
  • Right-click it on your desktop and select Run script. (You should see an “H” in the system tray.)


Now, open a window and press Ctrl+Space to pin it to the front. Press the same buttons again to unpin it. If you want to change the keyboard shortcut The Best Ways to Learn All the Keyboard Shortcuts You Will Ever Need There are many keyboard shortcuts you aren't using. We bring you all the right resources to teach you everything you need to know about keyboard shortcuts. Memorize keyboard shortcuts for instant productivity. Read More , the “^SPACE” portion is the part you’d need to change. If you wanted ALT+Enter, you’d do “!ENTER” in its place.

Now, anytime you want to quickly pin a windows to the front, you can hit a keyboard shortcut and be good to go!

Have you used AutoHotkey before? Know of any other ways to pin windows to the front? Let us know in the comments!


Image Credit: wrangler via ShutterStock

Related topics: AutoHotkey, Windows Tricks.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

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

  1. Joe Lavery
    June 21, 2016 at 7:16 pm

    This may have come up before...

    1) un-maximize the window before pinning
    2) use the 'toogle' argument in the statement

    WinRestore, A ;un-maximize before pinning window on top

    Winset, Alwaysontop, toggle, A ;toggle on or off