r/Terraria•
Cosmicprime

Key binds for extra mouse buttons, here's my AHK script :)

Just found this sub the other day, seems nice!

Here's my AHK script to bind keys to extra mouse buttons. Using a Logitech mouse with two thumb buttons, mbutton is scroll click

SetTitleMatchMode, 1
#IfWinActive, Terraria

;grapple
XButton1::
      send, {e down}
      sleep, 60
      send, {e up}
return

;heal
XButton2::
      send, {h down}
      sleep, 60
      send, {h up}
return

;mount
MButton::
      send, {r down}
      sleep, 60
      send, {r up}
return

Maybe someone will find this useful!

  1. Goto http://www.autohotkey.com/ and install
  2. Open up a text file and paste my code, save as .ahk file
  3. Right click it and compile script
  4. Run your new .exe
  5. Profit

Posted Jul 16, 2015, 5:32 AM UTC

70
Loading comments…