From 923a5ba471be7cff1bb2c139c203360dc35621e0 Mon Sep 17 00:00:00 2001 From: joten Date: Sun, 18 Sep 2011 17:01:44 +0200 Subject: [PATCH] fixed bug: Save another AutoHotkeyGUI as the active window of a view. --- src/Monitor.ahk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Monitor.ahk b/src/Monitor.ahk index f25bd0e..9c0a2db 100644 --- a/src/Monitor.ahk +++ b/src/Monitor.ahk @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - * @version 8.2.1.01 (21.08.2011) + * @version 8.2.1.01 (18.09.2011) */ Monitor_init(m) { @@ -32,7 +32,7 @@ Monitor_init(m) { } Monitor_activateView(v) { - Local aView, aWndClass, aWndId, m, n, wndId, wndIds + Local aView, aWndClass, aWndId, aWndTitle, m, n, wndId, wndIds If (v = -1) v := Monitor_#%Manager_aMonitor%_aView_#2 @@ -45,7 +45,8 @@ Monitor_activateView(v) { WinGet, aWndId, ID, A If WinExist("ahk_id" aWndId) { WinGetClass, aWndClass, ahk_id %aWndId% - If Not (aWndClass = "Progman") And Not (aWndClass = "AutoHotkeyGui") And Not (aWndClass = "DesktopBackgroundClass") + 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") View_#%Manager_aMonitor%_#%aView%_aWndId := aWndId }