This has worked well for forcing windows on top.

What other productivity software are you working with...
Post Reply
Dustydog
Posts: 260
Joined: 13 Jun 2016 04:19

This has worked well for forcing windows on top.

Post by Dustydog » 01 Jan 2018 23:08

I've used Desk Pins for ages, but lately I've found this very convenient:

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

mkolaski
Posts: 33
Joined: 16 Jul 2013 20:16
Location: UK

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

Post by mkolaski » 03 Jan 2018 14:34

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

Dustydog
Posts: 260
Joined: 13 Jun 2016 04:19

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

Post by Dustydog » 08 Sep 2018 01:30

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?

highend
Posts: 8099
Joined: 06 Feb 2011 00:33

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

Post by highend » 08 Sep 2018 07:53

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)...
One of my scripts helped you out? Please donate via Paypal or highend (at) web (dot) de

Post Reply