WinSet, Top|Raise|Lower, ...
of the window stack.
But, there is no "WinSet, Top" bringing a window to the top of the stack.
E.g. when a window is partially covered by another window I would like
to raise it above this window. WinActivate does nothing if the window is
already active, so now I do a WinMinimize+WinRestore which hurts the
Actually, I would love to manipulate the window stack also in finer steps,
i.e. lower/raise a window by one position in the window stack.
Is this possible?
This is cool, I have not been aware of the DllCall command, BTW it is not listed in "Extras/Editors/Syntax/Commands.txt" like
I think this can be done by calling SetWindowPos by means of DllCall. It seems to offer precising control over the ordering (stacking) of windows.
DllCall("[DllFile\]Function" [, "Type1", Arg1, "Type2", Arg2, "Cdecl ReturnType"])And while still tying to figureout the right parameters for DllCall, i.e. mapping symbolic values like HWND_TOP, the following is a nice workaround for me
WinSet, AlwaysOnTop, On, ahk_id %active_id% WinSet, AlwaysOnTop, Off, ahk_id %active_id%