ahk-scripts

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

Autodesk.ahk (1012B)


      1 #If (MouseIsOver("ahk_exe acad.exe") && WinActive("ahk_exe acad.exe"))
      2      || (MouseIsOver("ahk_exe Revit.exe") && WinActive("ahk_exe Revit.exe"))
      3 ; Default behavior of thumb buttons
      4 XButton1::Send {Esc}
      5 XButton2::Send {Enter}
      6 
      7 ; Hold MButton and press thumb buttons for switching between Windows
      8 ~MButton::Return
      9 MButton & XButton1::Send {MButton up}^{Tab}{MButton Down}
     10 MButton & XButton2::Send {MButton up}^+{Tab}{MButton Down}
     11 
     12 ; Hold RButton and press thumb buttons for switching between Windows
     13 RButton::Send {RButton}
     14 RButton & XButton1::Send ^{Tab}
     15 RButton & XButton2::Send ^+{Tab}
     16 
     17 #If MouseIsOver("ahk_exe Revit.exe") && WinActive("ahk_exe Revit.exe")
     18 ; Hold XButton1 to orbit
     19 XButton1 & ~MButton::
     20 Send {Shift down}
     21 KeyWait XButton1
     22 Send {Shift up}
     23 Return
     24 
     25 ; Hold XButton2 to select and unselect
     26 XButton2 & ~LButton::
     27 SendEvent {Ctrl down}{Shift down}
     28 KeyWait XButton2
     29 SendEvent {Ctrl up}{Shift up}
     30 Return
     31 
     32 ; Press check or cross on edit mode
     33 !XButton1::Send {Alt}mxm
     34 !XButton2::Send {Alt}mfm
     35 #If