Created
February 13, 2024 20:08
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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