commit 1643aeb92479a4ed5b1a29888bf44b30a2a3c738
parent bbf8d2d1d4910a53430f7716a499ddc6b735596c
Author: Pablo Cárdenas <pablocb2303@gmail.com>
Date: Thu, 15 Jun 2017 11:39:33 -0500
Fixed issue #1
The solution was using regular expressions for getting taskbar
classes.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/DesktopEnvironment.ahk b/DesktopEnvironment.ahk
@@ -25,7 +25,7 @@ clipboard = %clipboard%
Return
#If WinActive("ahk_class MultitaskingViewFrame")
- || MouseIsOver("ahk_class Shell_TrayWnd", "MSTaskListWClass1")
+ || MouseIsOver("ahk_class Shell_.*", "MSTaskListWClass1")
; Cycle through virtual desktops
WheelUp::Send ^#{Left}
WheelDown::Send ^#{Right}
@@ -35,12 +35,12 @@ XButton1::Send {Right}
XButton2::Send {Left}
MButton::Send {Enter}
-#If MouseIsOver("ahk_class Shell_TrayWnd", "MSTaskListWClass1")
+#If MouseIsOver("ahk_class Shell_.*", "MSTaskListWClass1")
XButton1::Send !+{Esc}
XButton2::Send !{Esc}
MButton::Send #{Tab}
-#If MouseIsOver("ahk_class Shell_TrayWnd", "ToolbarWindow323")
+#If MouseIsOver("ahk_class Shell_.*", "ToolbarWindow323")
; Change volume by scrolling
WheelUp::Send {Volume_Up}
WheelDown::Send {Volume_Down}