Maya camera navigation for Modo users (or people who don't have a middle mouse button)

I recently have started using Maya 2017 to learn rigging. I'm a Modo user and I also use a mouse with a very terrible middle mouse button (a foldable Microsoft Arc Touch mouse). Unlike Modo's camera navigation, Maya is very unfriendly if you don't have a middle mouse button. Also, you seemingly cannot change the keyboard commands for camera controls in Maya.

I've found a decent workaround, which is to use a free hotkey scripting program called AutoHotkey

While I haven't figured out how to perfectly replicate Modo's awesome camera controls, I've gotten something useable that doesn't overwrite any of Maya's rigging controls (save this as a .ahk file and load into AutoHotkey):

; Useful AutoHotkey modifiers: !Alt ^Ctrl +Shift
; Maya camera navigation: https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Maya/files/GUID-0DF7D2C9-1633-411F-BCA3-93302BE20676-htm.html

; Rotate/tumble (Modo Alt+LMB == Maya Alt+LMB)

; Pan conversion (Modo Shift+Alt+LMB -> Maya Alt+MMB)
!RButton::
    send, {Alt down}{MButton down}
    keywait, RButton
    send, {MButton up}{Alt up}
return

; Zoom conversion (Modo CTRL+Alt+LMB -> Maya Alt+MMB)
+RButton::
    send, {Alt down}{RButton down}
    keywait, RButton
    send, {RButton up}{Alt up}
return