Updated other points regarding Progman and WIN_8
This commit is contained in:
parent
345896f8b7
commit
76c4a21b30
2 changed files with 6 additions and 3 deletions
|
@ -1293,8 +1293,11 @@ Manager_winActivate(wndId)
|
|||
Debug_logMessage("DEBUG[1] Activating window: " wndId, 1)
|
||||
If Not wndId
|
||||
{
|
||||
If (A_OSVersion = "WIN_8")
|
||||
WinGet, wndId, ID, ahk_class WorkerW
|
||||
Else
|
||||
WinGet, wndId, ID, Program Manager ahk_class Progman
|
||||
Debug_logMessage("DEBUG[1] Activating Program Manager: " wndId, 1)
|
||||
Debug_logMessage("DEBUG[1] Activating Desktop: " wndId, 1)
|
||||
}
|
||||
WinActivate, ahk_id %wndId%
|
||||
WinGet, aWndId, ID, A
|
||||
|
|
|
@ -241,7 +241,7 @@ View_getActiveWindow(m, v)
|
|||
{
|
||||
WinGetClass, aWndClass, ahk_id %aWndId%
|
||||
WinGetTitle, aWndTitle, ahk_id %aWndId%
|
||||
If Not (aWndClass = "Progman") And Not (aWndClass = "AutoHotkeyGui" And SubStr(aWndTitle, 1, 10) = "bug.n_BAR_") And Not (aWndClass = "DesktopBackgroundClass")
|
||||
If Not (aWndClass = "Progman") And Not (aWndClass = "WorkerW") And Not (aWndClass = "AutoHotkeyGui" And SubStr(aWndTitle, 1, 10) = "bug.n_BAR_") And Not (aWndClass = "DesktopBackgroundClass")
|
||||
Return, aWndId
|
||||
}
|
||||
Return, 0
|
||||
|
|
Loading…
Reference in a new issue