@Pyonkichi
If I may ask, how can I stop Mouse Gesture L from blocking Standard AHK Hotkeys that use the same trigger?
I am currently in the process of integrating MouseGestureL into my main script, so that function outputs, objects, variables, state/conditions etc etc are always shared. I especially want to be able to know the state of MGL.
I am not achieving this "integration" through fancy means, just through the
#Include directive:
Code: Select all
#singleinstance, force
#NoEnv
#MaxHotkeysPerInterval 500
#Persistent
#Include, C:\Users\User1\Documents\AutoHotkey\MouseGestureL\MouseGestureL.ahk
return
~Rbutton::
ToolTip, Rbutton is Pressed!
The above is a reproducible example. My script is more complicated but it actually works, MGL works just fine and all data is merged and shared.
The problem I am having is that MGL
MG_Gesture_RB_8_: seems to consume
Rbutton all for itself,
~Rbutton:: never fires, despite the prefix
~ being in place in the
MG_Config file for
RB, the only partial fix I have found is the following:
Of course that disables
RB in MGL altogether.
I am essentially looking to achieve the following but in a single script file. This is how I have been using MGL in parallel with my main script,
C:\Users\User1\Documents\AutoHotkey\Master.ahk :
Code: Select all
#SingleInstance, Force
#NoEnv
Return
~Rbutton::
ToolTip, Master: Rbutton is Pressed!
Return
C:\Users\User1\Documents\AutoHotkey\MouseGestureL\MouseGestureL.ahk :
Code: Select all
MG_Gesture_RB_8_:
If(!MG_IsExDefault())
Tooltip, MGL: Rbutton and Up!
return
Both scripts work in parallel, One script does not "consume" the right click button all for itself thus both scripts are able to use the same button. I have been able to achieve this by adding
~ to the following lines in
MG_Config.ahk:
Code: Select all
...
Hotkey, ~RButton, MG_RB_DownHotkey, On
Hotkey, ~RButton up, MG_RB_UpHotkey, On
...
Hotkey, ~RButton, MG_RB_DownHotkey, Off
Hotkey, ~RButton up, MG_RB_UpHotkey, Off
...
`
I know MGL can do a single tap of right click with no mouse movement, even double taps. But I really need this functionality
Any help would be most welcome.