“Always On Top” Option In Windows OS

Sithum Meegahapola
3 min readAug 12, 2019

--

As we all know Linux OS has an inbuilt function called “Always On Top” for any kind of opened window. For Windows OS users we have no option similar to that. I badly wanted the same option and searched all over the internet to get an answer. Here I am sharing the solution that I have found.

So let’s see how it can be done.

First, you need to download and install this Scripting tool for windows.

After installing the software.

Go to your desktop and follow these steps.
Right-Click → New → AutoHotKey Script

After Click the “AutoHotKey Script” you will get a file on the desktop.
So you can rename it to “Always On Top.ahk”.

The next step is to write the script. for that, right-click on the icon that we created on the desktop and click “Edit Script”.

Then it will open the Notepad.
So for the script, it’s just a simple one. just copy and paste this in the Notepad, as below.

^SPACE:: Winset, Alwaysontop, , A

After Correctly entering the script in the notepad. Save it and close. Now we are done. Let’s see how it will work.

Final Steps

Double click on the icon we created and run the script we created. it will show a taskbar icon With a logo “H” as below

It means that your script is running. so now we are done. Now you can keep any window(s) Top of your screen by just pressing this key bind.

CTRL + SPACE

select your window that you always want to keep on top and press the above keys and it will keep on top.
To remove from always on top option, again press the same key bind on your keyboard by selecting the window.

That's how WINDOWS OS users can keep any window on top. I think this is a really helpful feature to all Windows OS users to keep any window(s) Always On Top.
Because now you can keep a youtube video on top of all windows while your coding with a maximized IDE. So enjoy the feature.

Thank you.

--

--

Sithum Meegahapola
Sithum Meegahapola

Written by Sithum Meegahapola

Senior Software Engineer & Audio Engineer

Responses (1)