Skip to content

Instantly share code, notes, and snippets.

@JSamir
Created February 13, 2024 20:08
Show Gist options
  • Save JSamir/032418a005b2f18329dc88e1e0f44446 to your computer and use it in GitHub Desktop.
Save JSamir/032418a005b2f18329dc88e1e0f44446 to your computer and use it in GitHub Desktop.
autohotkey script to use left mouse button as middle mouse for camera movement
#Requires AutoHotkey v2.0
; * (wildcard) allows the hotkey to fire even if you are holding modifier keys that the hotkey doesn't include symbols for.
; ~ (no-suppress) prevents the hotkey from blocking the key's native function.
CoordMode "Mouse"
~LButton::MButton
MButton::LButton
#HotIf MiniMap()
LButton::LButton
#HotIf
MiniMap(){
MouseGetPos(&x,&y)
;MsgBox "x: " x
;MsgBox Format("return is {1}", (x<275) && (y>925))
Return (x<275) && (y>925)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment