Refining a LMB rebind

Ask gaming related questions (AHK v1.1 and older)
Hyphen
Posts: 53
Joined: 24 Jul 2016, 17:57

Refining a LMB rebind

19 Jul 2017, 07:49

So, in League of Legends I use LMB as my attack move button so I can kite easier. This means that I have to rebind the LMB for the UI elements as Shift+LMB. The following script allows me to just LMB over my minimap and item bar to use it as standard (just LMB instead of Shift+LMB):

Code: Select all

        LButton::
            CoordMode, Mouse, Screen
            MouseGetPos, posX, posY
                if ((posX >= 1653) && (posY >= 807)) || ((posX >= 1090) && (posX <= 1196) && (posY >= 977)) { ; Minimap and information bar
                    SendInput {Shift down}{LButton down}
                    _release := "{LButton up}{Shift up}"
                } else {
                    SendInput {LButton down}
                    _release := "{LButton up}"
                }
        Return
The issue is, every now and then I'll LMB on the minimap or item bar (well within these boundaries) and it will process a standard LMB press instead of Shift+LMB. How can I prevent this from happening? Is there a way I can put the coordinate check before the button press check?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 131 guests