Fixed bug regarding activating a monitor ...

... by clicking on the desktop
This commit is contained in:
joten 2014-10-31 16:10:33 +01:00
parent 6a65aa4d00
commit bd00181033

View file

@ -596,7 +596,7 @@ Manager_onShellMessage(wParam, lParam) {
WinGet, aWndId, ID, A
WinGetClass, aWndClass, ahk_id %aWndId%
WinGetTitle, aWndTitle, ahk_id %aWndId%
If ((wParam = 4 Or wParam = 32772) And lParam = 0 And aWndClass = "Progman" And aWndTitle = "Program Manager")
If ((wParam = 4 Or wParam = 32772) And (aWndClass = "WorkerW" And aWndTitle = "" Or lParam = 0 And aWndClass = "Progman" And aWndTitle = "Program Manager"))
{
MouseGetPos, x, y
m := Monitor_get(x, y)