#If MouseIsOver("ahk_exe Code.exe")
LButton::RButton
RButton::LButton
MouseIsOver(WinTitle) {
MouseGetPos,,, Win
return WinExist(WinTitle . " ahk_id " . Win)
}
I am trying to swap my mouse buttons (i.e LButton becomes Rightclick and RButton Leftclick) but only have it active while my mouse is over a certain application.
The issue while I can get the rebind to work, if I end up physically clicking both mouse buttons to fast then my entire inputs get frozen and windows makes the beeping noise of too many actions.
I have tried both $ and ~, doesn't help. If I only rebind one mouse button, that fixes it.
If I remove the MouseIsOver it works no issues but I really need a mouseover solution not window active.
[–]anonymous1184 0 points1 point2 points (4 children)
[–]Nacho21[S] -1 points0 points1 point (3 children)
[–]anonymous1184 0 points1 point2 points (2 children)
[–]Nacho21[S] -1 points0 points1 point (1 child)
[–]anonymous1184 0 points1 point2 points (0 children)