Autohotkey 3 Side Buttons on mouse. Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
bob65536
Posts: 9
Joined: 18 May 2024, 09:50
Contact:

Autohotkey 3 Side Buttons on mouse.

Post by bob65536 » 18 May 2024, 09:52

I know that Xbutton1 and Xbutton2 are supported, but I don't see anything about Xbutton3. What should I do to reprogram this 3rd mouse button?

User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: Autohotkey 3 Side Buttons on mouse.

Post by mikeyww » 18 May 2024, 10:53

Welcome to this AutoHotkey forum!

I can think of two main options. The first is to check for a :arrow: scan code. The second would be to see if that button itself sends a known key or key sequence. If so, you could create a hotkey for that key in your script. KeyHistory

bob65536
Posts: 9
Joined: 18 May 2024, 09:50
Contact:

Re: Autohotkey 3 Side Buttons on mouse.

Post by bob65536 » 23 May 2024, 16:37

KeyHistory seems to not show the button when pressed. Any other thing I could do?

User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: Autohotkey 3 Side Buttons on mouse.

Post by mikeyww » 23 May 2024, 16:55

Yes. First, install the :arrow: keyboard hook and mouse hook in your script. Second, if you have no luck with it, then check to see whether a scan code is identified.

User avatar
boiler
Posts: 17393
Joined: 21 Dec 2014, 02:44

Re: Autohotkey 3 Side Buttons on mouse.  Topic is solved

Post by boiler » 23 May 2024, 16:57

Another possibility: Does your mouse come with software that allows you to map keypress combinations to be sent when you click that button? If so, you should be able to define a hotkey in an AHK script to trigger based on whatever combination you define for that button. Make it some combination of keys you wouldn’t physically press yourself so it doesn’t interfere with anything else.

NalaEdaw
Posts: 27
Joined: 15 Mar 2023, 14:30

Re: Autohotkey 3 Side Buttons on mouse.

Post by NalaEdaw » 24 May 2024, 12:37

Well the mouse buttons is something I have never thought about or used! Thanks to Boilers suggestion of software that comes with your mouse did I look at it and Yes there were loads of available options.
I can only thankyou so much Boiler for the insight to my mouses software and to say that looking into software and options is something I should take more notice of.

Thanks and Regards
Alan

Post Reply

Return to “Ask for Help (v2)”