I have tried:
Code: Select all
WinSet, Bottom ,, A
I want to move current window to the very bottom of the list.
IIUC the above code worked in the past and it should work for classic alt-tab,
but is there solution for the new Windows 10 desktop?
Code: Select all
WinSet, Bottom ,, A
Code: Select all
; For AHK v2
hwnd := WinActive("A")
WinMinimize("ahk_id" hwnd)
WinSetExStyle(0x00000080, "ahk_id" hwnd)
loop 4
Send("{ralt down}{lalt}{tab down}"), Send("{ralt up}{tab up}"), sleep(100)
WinSetExStyle(-0x00000080, "ahk_id" hwnd)
Code: Select all
; Remove the window from the alt-tab list temporarily to force
; it to the end of the list. To do this, temporarily apply the
; WS_EX_TOOLWINDOW style and remove WS_EX_APPWINDOW (if present).
WinGet oldxs, ExStyle, ahk_id %hwnd%
newxs := (oldxs & ~0x40000) | 0x80
if (newxs != oldxs)
{
WinSet ExStyle, % newxs, ahk_id %hwnd%
WinSet ExStyle, % oldxs, ahk_id %hwnd%
}
Hi, I have tried the above snippet, full code :lexikos wrote: ↑16 Nov 2018, 15:54I found it sufficient to simply remove the style and restore it. I used it in this script (for v1).Code: Select all
; Remove the window from the alt-tab list temporarily to force ; it to the end of the list. To do this, temporarily apply the ; WS_EX_TOOLWINDOW style and remove WS_EX_APPWINDOW (if present). WinGet oldxs, ExStyle, ahk_id %hwnd% newxs := (oldxs & ~0x40000) | 0x80 if (newxs != oldxs) { WinSet ExStyle, % newxs, ahk_id %hwnd% WinSet ExStyle, % oldxs, ahk_id %hwnd% }
Code: Select all
^+F1::
hwnd := WinActive("A")
WinGet oldxs, ExStyle, ahk_id %hwnd%
newxs := (oldxs & ~0x40000) | 0x80
if (newxs != oldxs)
{
WinSet ExStyle, % newxs, ahk_id %hwnd%
WinMinimize ahk_id %hwnd%
sleep 500
WinSet ExStyle, % oldxs, ahk_id %hwnd%
}
return
Users browsing this forum: No registered users and 261 guests