Code: Select all
; For the side keys as XButton 1/2, I remap them to LButton and RButton with two lines of code:
XButton1::RButton
XButton2::LButton
; For WheelLeft/Right, I remap them to XButton 1/2 to make this act as the behavior of my previous mouse:
WheelLeft::Send {XButton1}
WheelRight::Send {XButton2}
Then the problem comes, I have wrote another script for my previous mouse that have actions like:
Code: Select all
; For my previous mouse, the XButtons is the Left and Right of the wheel
XButton1::Enter
XButton2::
; (do something...)
Return
Code: Select all
#InputLevel 1
XButton1::RButton
XButton2::LButton
WheelLeft::Send {XButton1}
WheelRight::Send {XButton2}
But in the key log of the old script, they disappered! Also, they seems totally be blocked as they are not working in other programs, neither as XButtons, nor as WheelL/R.021: Send,{XButton1} (0.09)
021: Return (0.95)
022: Send,{XButton2} (0.05)
022: Return (1.66)
If I add #InputLevel 0 before the last two lines, the WheelL/R to XButton1/2 remap works but they are ignored by other scripts.
So is there any way to both increase their #InputLevel and make them works? Or is there any way to make other scripts response #InputLevel 0 keys?