Reputation: 33
I like having my middle mouse button be a double click, so I have an .ahk
script to make that happen, but a lot of programs I use (particular ones involving a 3D environment like Autodesk stuff) need the middle mouse button to function normally, so I have this script:
#SetTitleMatchMode, 2
#IfWinNotActive, Autodesk
MButton::send, {LButton}{LButton}
All this does is make the double click work constantly. As if it's ignoring the WinNotActive completly. I have no idea why this doesn't work. I've tried a few things to see if I could fix it myself, but I made no progress.
Please remember that kind and respectful responces are greatly appreciated.
Upvotes: 1
Views: 2064
Reputation: 10892
Context-sensitive directives apply to all following hotstrings and hotkeys. Thus, you have to "reset" this behaviour and limit the scope with another #ifWinNotActive
:
#SetTitleMatchMode, 2
#IfWinNotActive, Autodesk
MButton::send, {LButton}{LButton}
#IfWinNotActive
(see https://autohotkey.com/docs/commands/_IfWinActive.htm#Basic_Operation for details)
Upvotes: 2