ahk-scripts

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 4eb030f508cfd1be2aa985b03289faead1ba00f3
parent f4d2b52a80903357abffad43239573e6895bd85b
Author: Pablo Cárdenas <pablocb2303@gmail.com>
Date:   Thu,  4 May 2017 19:59:30 -0500

Update cycling through virtual desktops

Diffstat:
MAutodesk.ahk | 4++--
MDesktopEnvironment.ahk | 18++++++++++++++----
2 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/Autodesk.ahk b/Autodesk.ahk @@ -1,8 +1,8 @@ #If (MouseIsOver("ahk_exe acad.exe") && WinActive("ahk_exe acad.exe")) || (MouseIsOver("ahk_exe Revit.exe") && WinActive("ahk_exe Revit.exe")) ; Default behavior of thumb buttons -XButton1::Esc -XButton2::Enter +XButton1::Send {Esc} +XButton2::Send {Enter} ; Hold MButton and press thumb buttons for switching between Windows ~MButton::Return diff --git a/DesktopEnvironment.ahk b/DesktopEnvironment.ahk @@ -5,7 +5,7 @@ ^#w::Run, "C:\Program Files\qutebrowser\qutebrowser.exe" ; CapsLock shows an alert when pressed -CapsLock:: +*CapsLock:: If !GetKeyState("capslock","T") { SetCapsLockState, On Progress, B2 W350 H50 ZH0 FS30 WS900 x0 y0 CWFFC7CE CT9C0006, CAPS LOCK ON @@ -15,10 +15,20 @@ If !GetKeyState("capslock","T") { } Return -#If MouseIsOver("ahk_class MultitaskingViewFrame") || MouseIsOver("ahk_class Shell_TrayWnd", "MSTaskListWClass1") +#If WinActive("ahk_class MultitaskingViewFrame") + || MouseIsOver("ahk_class Shell_TrayWnd", "MSTaskListWClass1") ; Cycle through virtual desktops -WheelUp::Send ^#{Right} -WheelDown::Send ^#{Left} +WheelUp::Send ^#{Left} +WheelDown::Send ^#{Right} + +#If WinActive("ahk_class MultitaskingViewFrame") +XButton1::Send {Right} +XButton2::Send {Left} +MButton::Send {Enter} + +#If MouseIsOver("ahk_class Shell_TrayWnd", "MSTaskListWClass1") +XButton1::Send !+{Esc} +XButton2::Send !{Esc} MButton::Send #{Tab} #If MouseIsOver("ahk_class Shell_TrayWnd", "ToolbarWindow323")