How do I remap a keyboard shortcut to a mouse button?

I have extra mouse buttons and I wanna use them for undo and redo.

What make and model of mouse is it? Do you have software?
Many mice allow, through their software, to reassign commands, for example, like pressing CTRL + Z or CTRL + Y. They would run these commands for the foreground window. That is, they would also work in the Operating System or other programs.

1 Like

Thanks but my mouse does not have the ability to reprogram the buttons. I think i can use a remap software though

You could use Autohotkey scripting tool.

https://www.autohotkey.com/docs/misc/Remap.htm