I rebound my "Middle Click" of my mouse to F3 to make this script work:
Code: Select all
#IfWinActive World of Warcraft ahk_class GxWindowClass
$F3::
Send, {F3}{MButton}
return
#IfWinActive
F3 and MiddleClick
at the same time
When I hold down SHIFT and press F3 it press:
SHIFT + F3 and SHIFT + MiddleClick
at the same time
Same behaviour for CTRL and ALT. It's exactly like I want it.
But now I decided to but my mouse back for default (MiddleClick is MiddleClick again) so that my MiddleClick works like normal (for Browser Tabs and stuff like that).
So I decided to make the script like that:
Code: Select all
#IfWinActive World of Warcraft ahk_class GxWindowClass
$MButton::
Send, {F3}{MButton}
return
#IfWinActive
When I press MiddleClick it press:
F3 and MiddleClick
at the same time. So it works like it should
BUT when I press SHIFT + MiddleClick it do nothing.
It should be the same behaviour like with the F3. It should press:
SHIFT + F3 and SHIFT + MiddleClick
at the same time, but it do not... Same for ALT and CTRL.
Why is it like that?!
AHK seems to handle mouse buttons differently like keyboard buttons.
Do I need to add scripts like that to my normal script:
Code: Select all
#IfWinActive World of Warcraft ahk_class GxWindowClass
+$MButton::
Send, {SHIFT Down}{F3}{MButton}{SHIFT Up}
return
#IfWinActive
Then I would need to add a script for "every modificator" possible...
Like:
[*]Shift
[*]Ctrl
[*]Alt
[*]Shift + Ctrl
[*]Shift + Alt
[*]Ctrl + Alt
That would just be to much... I mean, it's working 100% perfectly fine with $F3:: but why isn't it working with $MButton:: ?!?!
Thanks for your help. This is something I totally don't understand to be honest. Why AHK acts differently.