Attach shortcut key in mouse

Guys, can I attach a shortcut in a mouse? It has 7 buttons and I would like to attach mate and smart dimension commands in it.

SolidworksGeneral