help with AHQ on mouse

hi im wanting to do a mouse button 5 and triger macro and mouse button 4 and end button for macro. is this possible? if that makes any sense.