I've tried xInput and AutoKey, but xInput only seems to allow me to bind mouse buttons to mouse buttons or keyboard buttons to keyboard buttons. For example, I managed to bind my middle mouse button the the "browser back" button on my mouse.
I'm now trying to bind my "browser forward" button to space, with no luck.
With xInput, I tried setting it to 65, which was the code my keyboard sends when I hit the space bar. The command executes with no error, but clicking the button now has no effect whatsoever.
With AutoKey, the issue is with getting my mouse to trigger the script. I have the script set to keyboard.send_keys(" "), but the hotkeys only accept keyboard input...
I've searched for answers to this, but it appears nobody else is attempting to map keyboard keys to the mouse.