Page 1 of 1

This has worked well for forcing windows on top.

Posted: 01 Jan 2018 23:08
by Dustydog
I've used Desk Pins for ages, but lately I've found this very convenient:

http://www.chameleon-managers.com/window-manager/

Re: This has worked well for forcing windows on top.

Posted: 03 Jan 2018 14:34
by mkolaski
I've been using this Autohotkey script I found online for several years - just Win & t to toggle

Code: Select all

;always on top  Win + t
;#t:: Winset, Alwaysontop, , A
#t::
ActiveHwnd := WinExist("A")
WinGetTitle, WindowTitle, ahk_id %ActiveHwnd%
WinGet, ExStyle, ExStyle, ahk_id %ActiveHwnd%
if (ExStyle & 0x8)
    OnTop=1
else
    OnTop=0
Winset, AlwaysOnTop, Toggle, ahk_id %ActiveHwnd%

StringReplace, WindowTitle, WindowTitle, %A_Space%- (Pinned)
if not OnTop
  WindowTitle:=WindowTitle . " - (Pinned)"

WinSetTitle, ahk_id %ActiveHwnd%,,%WindowTitle%
return

Re: This has worked well for forcing windows on top.

Posted: 08 Sep 2018 01:30
by Dustydog
Still haven't tried the AHK solution (though I still may). But though I still use chameleon (I may uninstall it sometime, idk), I've found that for really difficult-to-manage programs, deskpins run as an administrator can pin pretty much anything, including Universal Apps. One will sometimes receive an error message, but it pins it anyway.

Will the AHK solution do that?

Re: This has worked well for forcing windows on top.

Posted: 08 Sep 2018 07:53
by highend

Code: Select all

#NoEnv
#Persistent
;#NoTrayIcon
#SingleInstance force

#t:: ; Win + t
WinGetTitle, windowTitle, A
WinGet, exStyle, ExStyle, A
if (exStyle & 0x8) {
    StringReplace, windowTitle, windowTitle, %A_Space%- (Pinned)
    Winset, AlwaysOnTop, Off, A

} else {
    windowTitle := windowTitle . " - (Pinned)"
    Winset, AlwaysOnTop, On, A
}
WinSetTitle, A, , % windowTitle
return

Should work fine on W10 (started with admin permissions)...