AutoHotKey and On Top Windows

email me

Every once in awhile, I find an app that should remain on top of all windows, but does not. In Windows 10, I noticed the Sticky Notes does not stay on top…when you obviously need it to. I’m not sure what Microsoft was thinking, the whole point of sticky notes, is that they are in your face to remind you. If your sticky note is behind 10 windows, I’m not sure how you’re going to remember. But…I digress. To bring the Sticky Note app forward (or any other app for that matter), I used AutoHotKey.

The AHK code is below. It works simply by looking at the app name/title, and then forcing it on top of other windows. I ended up adding the Sticky Note app to the code as well, compiling it, and replacing my shortcuts with this EXE. So, when I click the Sticky Note, it accesses the AHK EXE, loads the Sticky App, and then forces it to remain on top.

Code

Sleep, 1000 ; 1 second
WinSet, AlwaysOnTop, On, Sticky Notes

 

Notes

Ahk2Exe can be used in the following ways:

  1. GUI Interface: Run the “Convert .ahk to .exe” item in the Start Menu.
  2. Right-click: Within an open Explorer window, you can right-click any .ahk file and select “Compile Script” (only available if the script compiler option was chosen when AutoHotkey was installed).

Download AutoHotKey