PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Always on Top

Open anythingwithawire opened this issue 7 years ago • 62 comments

crutkas: Should look at #49 also for additional feature implementation idea

And #641 for transparency

anythingwithawire avatar May 07 '19 13:05 anythingwithawire

If this could be made to survive windows closing and reopening, like the Outlook reminders pop-up, that would be super helpful.

scottven avatar May 07 '19 14:05 scottven

This has been long overdue and should have been standard. Wish this gets implemented.

tjtolentino avatar May 08 '19 17:05 tjtolentino

This is one of those things I always wondered... Why only task manager has that? Why isn't it standard for every window?

bergamin avatar May 08 '19 19:05 bergamin

I really hope this is implemented as a default. I might even give it a go myself if I can figure out what I'm doing!

For those who want a workaround, AutoHotKey can do this - You'd need to install AHK, paste the below to a script, save it as an .ahk file and place it in your startup folder. Then, load the script once (or restart) and then whenever you push Ctrl+Alt+A it sticks it. Push it again to unstick.

I hope this because a built in thing though - I can't really install AHK at work.

^!A:: Winset, Alwaysontop, , A Return

DarylGraves avatar May 08 '19 21:05 DarylGraves

@anythingwithawire @bergamin brought this issue to my attention. I'm just going to c/p the relevant segments for what I detailed for this request:

How it works:

As I have it at the moment, pressing Ctrl+Space on any desktop window will toggle the always on top state of that window. When that's done, they effectively stay in front, even when focus changes to another window after that.

What it's for:

Doing that allows me to put some content I want to see (a video, browser tab, some instructions, or notes) on my display whilst I work/type into a different window.

When I'm done I just focus my pinned window and use Ctrl+Space to return it to normal.

What I'd change:

Admittedly, the Ctrl+Space key combination is sometimes problematic when gaming, where I might need the same combination for something else. That's why I suggest changing it to some combination with the Win key instead.

Win+Space is (annoying) used to switch keyboard layouts, so it might have to become something like Win+Alt instead.

It would also help, though, to allow the user to configure the shortcut, as well as a visible button to pin/unpin windows similar to the "Maximize to new desktop widget".

Sollace avatar May 09 '19 12:05 Sollace

I'm currently using DeskPins, but it's a bit outdated and is not able to pin all types of windows.

glen-84 avatar May 09 '19 14:05 glen-84

@glen-84 Unfortunately I can't link the tool I use. It's literally just a little 200kb exe I got from somewhere. I run it from my startup folder and it allows the key combination to work on literally any window.

Edit: lmao found it

Sollace avatar May 09 '19 16:05 Sollace

This has been desperately needed for decades. A new window titlebar button or even if it was just accessible by right-clicking the titlebar. I always have to use utilities to add the ability but they either half-work or don't look good.

User2020 avatar May 15 '19 10:05 User2020

you may try "Sticky Windows" modern fluent app for Windows 10 It is on the windows store, https://github.com/hereafter/stickywindows/wiki

it not free though.

hereafter avatar May 24 '19 17:05 hereafter

Just read about PowerToys and this is definitely something Windows has needed forever. I used DisplayFusion in the past but it doesn't feel native and doesn't work with 100% of windows.

Might give Sticky Windows a try too.

fredskis avatar Sep 09 '19 23:09 fredskis

you may try "Sticky Windows" modern fluent app for Windows 10 It is on the windows store, https://github.com/hereafter/stickywindows/wiki

it not free though.

What a shameless plug by the dev... Not to mention that that thing works so inconsistently as well

LuminarySage avatar Oct 16 '19 03:10 LuminarySage

I feel like, if AutoHotKey can achieve it in 2 lines of code the functionality must already be there in Windows, just hidden away somewhere... Some programs like Skype for Business have the option for it. Maybe it's a registry that gets toggled or something?

DarylGraves avatar Oct 16 '19 19:10 DarylGraves

@DarylGraves It's actually an attribute (sometimes called AlwaysOnTop) that can be toggled on and off for a given window.

That feature is actually used a lot for all kinds of windows programs, including media players., so a user-accessible toggle is indeed a very easy thing to do.

Sollace avatar Oct 18 '19 23:10 Sollace

@DarylGraves It's actually an attribute (sometimes called AlwaysOnTop) that can be toggled on and off for a given window.

That feature is actually used a lot for all kinds of windows programs, including media players., so a user-accessible toggle is indeed a very easy thing to do.

How do we do it boss? I was trying to see if there was a registry that's toggled or something but couldn't find it.

DarylGraves avatar Oct 18 '19 23:10 DarylGraves

@DarylGraves If you're looking for a way to get the feature, see my comment further up the page for a downloadable utility.

From the linked article:

The program is written in Autohotkey with a single line of code: ^SPACE:: Winset, Alwaysontop, , A

It's an attribute, so you literally just need to get a handle onto the window and do some system call to modify its state. Probably would have to be written in WinForms.

Sollace avatar Oct 18 '19 23:10 Sollace

I prefer XtraButtons for now, but I wish Windows had this built-in: http://www.xtrabuttons.com/

User2020 avatar Oct 18 '19 23:10 User2020

Don't tell anybody... Always On Top will arrive soon ;)

enricogior avatar Oct 31 '19 08:10 enricogior

@enricogior proceeds to tell everyone

Sollace avatar Oct 31 '19 16:10 Sollace

Don't tell anybody... Always On Top will arrive soon ;)

@enricogior Subtle...

LuminarySage avatar Oct 31 '19 16:10 LuminarySage

Should Always On Top be named "PowerMenu" like the original tool?

crutkas avatar Dec 04 '19 21:12 crutkas