ahk-scripts

AutoHotkey scripts
git clone git://pcardenasb.com/ahk-scripts
Log | Files | Refs

CSI.ahk (807B)


      1 #If (MouseIsOver("ahk_exe ETABS.exe") && WinActive("ahk_exe ETABS.exe"))
      2     || (MouseIsOver("ahk_exe SAP2000.exe") && WinActive("ahk_exe SAP2000.exe"))
      3     || (MouseIsOver("ahk_exe SAFE.exe") && WinActive("ahk_exe SAFE.exe"))
      4 ; Default behavior of thumb buttons
      5 XButton1::Send {Esc}
      6 XButton2::Send {Enter}
      7 
      8 ; Hold MButton and press thumb buttons for switching between Windows
      9 ~MButton::Return
     10 MButton & XButton1::Send {MButton up}^{Tab}{MButton Down}
     11 MButton & XButton2::Send {MButton up}^+{Tab}{MButton Down}
     12 
     13 ; Hold RButton and press thumb buttons for switching between Windows
     14 RButton::Send {RButton}
     15 RButton & XButton1::Send ^{Tab}
     16 RButton & XButton2::Send ^+{Tab}
     17 
     18 ; Hold XButton1 to orbit
     19 XButton1 & MButton::
     20 Send {Shift down}{MButton down}
     21 KeyWait MButton
     22 Send {Shift up}{MButton up}
     23 Return
     24 #If