Hi.
I have been searching but I haven't been able to figure out how to do this, sorry first of all if it is too easy and for language mistakes, English is not my native language.
I have a mouse with several side buttons, I use two of them to view the next/previous tab in browsers with buttons mapped to Control + (Shift) + Tab. I would like to use AHK so that if I press that button while right mouse button is holding down, a totally different action would be executed.
Thanks. Bye
Mouse with extra side buttons while RButton Topic is solved
-
- Posts: 4
- Joined: 14 Jun 2021, 10:27
Re: Mouse with extra side buttons while RButton
Code: Select all
XButton1::Send x
RButton::RButton
RButton & XButton1::Send y
-
- Posts: 4
- Joined: 14 Jun 2021, 10:27
Re: Mouse with extra side buttons while RButton
Thanks, but XButton1 and XButton2 are for Back and Forward buttons, aren't they?
I have got a mouse with 12 side buttons and I want to remap the ones that are not those two.
I have got a mouse with 12 side buttons and I want to remap the ones that are not those two.
Re: Mouse with extra side buttons while RButton
The buttons are for anything. Some software maps them to various things. AHK recognizes the five standard mouse buttons, plus the wheel, by default. You can check scan codes for additional buttons. See documentation about the scan codes.
https://www.autohotkey.com/docs/KeyList.htm#SpecialKeys
https://www.autohotkey.com/docs/KeyList.htm#SpecialKeys
-
- Posts: 4
- Joined: 14 Jun 2021, 10:27
Re: Mouse with extra side buttons while RButton
I have tried with #InstallKeybdHook, but it seems these keys do not generate events (Back and Forward do it), I think it is the case of a too low level for AutoHotkey to access.
So, as a workaround, is it possible to use Control + Shift + Tab while Rbutton holding down as a condition/hotkey?
So, as a workaround, is it possible to use Control + Shift + Tab while Rbutton holding down as a condition/hotkey?
Re: Mouse with extra side buttons while RButton Topic is solved
Yes.
Other software that manages the same buttons or uses a hook can conflict with AHK.
Code: Select all
#If GetKeyState("RButton", "P")
^+Tab::Send z
#If