LaurentG > 2021-12-31 14:45
Horst > 2021-12-31 15:35
Jean Lalonde > 2021-12-31 16:53
joeNOR > 2022-01-01 09:00
; Always on Top
; CTRL-SPACE
; Makes current window "Always on Top"
^SPACE::
WinGet, currentWindow, ID, A
WinGet, ExStyle, ExStyle, ahk_id %currentWindow%
if (ExStyle & 0x8) ; 0x8 is WS_EX_TOPMOST.
{
Winset, AlwaysOnTop, off, ahk_id %currentWindow%
SplashImage,, x0 y0 b fs12 CTFFFF00 CW0000FF, OFF always on top.
Sleep, 1500
SplashImage, Off
}
else
{
WinSet, AlwaysOnTop, on, ahk_id %currentWindow%
SplashImage,, x0 y0 b fs12 CTFFFF00 CWFF0000, ON always on top.
Sleep, 1500
SplashImage, Off
}
Return
LaurentG > 2022-01-01 11:24
joeNOR > 2022-01-01 11:41
(2022-01-01 11:24)LaurentG Wrote: So, now two questions :
- when you say it works, Jean, Horst a/o Joe, is it selecting "always on top" in the menu, or activating it with the shortcut ?
Jean Lalonde > 2022-01-01 12:15
LaurentG > 2022-01-01 13:24
joeNOR > 2022-01-01 13:35
Jean Lalonde > 2022-01-01 16:34
LaurentG > 2022-01-02 03:28
Jean Lalonde > 2022-01-02 09:16
Horst > 2022-01-03 14:01
(2022-01-01 11:24)LaurentG Wrote: ...
So, now two questions :
- when you say it works, Jean, Horst a/o Joe, is it selecting "always on top" in the menu, or activating it with the shortcut ?
Regards
Laurent
joeNOR > 2022-01-04 01:07
(2022-01-02 09:16)Jean Lalonde Wrote: Maybe someone with deeper knowledge of Windows than me will explain this better but I know that Windows Explorer is not built as are "regular" application. Sometimes inserting a small delay let Windows perform some internal tasks required to make something work in a specific situation (like after closing a menu in this case).